Click here to Skip to main content
13,044,115 members (104,996 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Admit it NOW Pin
Duncan Edwards Jones20-Jun-14 5:44
professionalDuncan Edwards Jones20-Jun-14 5:44 
GeneralRe: Admit it NOW Pin
OriginalGriff20-Jun-14 5:48
protectorOriginalGriff20-Jun-14 5:48 
GeneralRe: Admit it NOW Pin
Duncan Edwards Jones20-Jun-14 6:10
professionalDuncan Edwards Jones20-Jun-14 6:10 
GeneralRe: Admit it NOW Pin
Ian Shlasko20-Jun-14 5:47
memberIan Shlasko20-Jun-14 5:47 
GeneralRe: Admit it NOW Pin
Kenneth Haugland20-Jun-14 5:50
professionalKenneth Haugland20-Jun-14 5:50 
GeneralRe: Admit it NOW Pin
PIEBALDconsult20-Jun-14 6:03
memberPIEBALDconsult20-Jun-14 6:03 
GeneralRe: Admit it NOW Pin
Kenneth Haugland20-Jun-14 6:10
professionalKenneth Haugland20-Jun-14 6:10 
GeneralRe: Admit it NOW Pin
Abhinav S20-Jun-14 6:02
mvpAbhinav S20-Jun-14 6:02 
GeneralRe: Admit it NOW Pin
OriginalGriff20-Jun-14 6:17
protectorOriginalGriff20-Jun-14 6:17 
GeneralRe: Admit it NOW Pin
S Houghtelin20-Jun-14 6:41
professionalS Houghtelin20-Jun-14 6:41 
GeneralRe: Admit it NOW Pin
HomerTheGreat20-Jun-14 7:44
memberHomerTheGreat20-Jun-14 7:44 
AnswerRe: Admit it NOW Pin
Dan Colasanti20-Jun-14 8:05
professionalDan Colasanti20-Jun-14 8:05 
JokeRe: Admit it NOW Pin
jeron120-Jun-14 8:31
memberjeron120-Jun-14 8:31 
GeneralXCode question Pin
MikeGledhill20-Jun-14 4:45
memberMikeGledhill20-Jun-14 4:45 
Hi guys,

I'm not in the wrong place - this isn't a request for help... it's just a question to XCode developers out there.

If you were in an interview, without access to the internet or any reference manualls, would you be able to convert the following C# code into Objective-C ?

DateTime dt = new DateTime(2014, 12, 25);    //  It's Christmas !!
int nextYear = dt.Year + 1;		     //  Calculate which year starts next week..


I know, it's dumb.

I'm just interested in knowing how many of you could program that in XCode, off the top of your heads.

I've been working with XCode for almost two years, and my reaction to that problem would be to reach for Google. And I'm not alone. 22,000+ readers have read the following CodeProject article, and if I was given this task, that number would increase by one.

iPhone OS: How do I create an NSDate for a specific date?


And extracting the Year from an NSDate variable ? Same thing again. I'd need to ask Google's help.

And don't even get me starting on mistakenly comparing two NSDates using the less-than or greater-than symbol (it'll actually compare the two pointers, rather than the dates..)

I just wonder why Apple doesn't, at some point, just try to make their existing SDK a little more.. finished, rather than adding 4,000 new SDK functions to the forthcoming iOS 8.

UIViews ? Let me set just the height value (yes, yes, I know I can write a category function to write this code myself)

And so on.


Mike
Frustrated (and reluctant) XCode developer
GeneralRe: XCode question Pin
d@nish 20-Jun-14 4:54
member d@nish 20-Jun-14 4:54 
GeneralRe: XCode question Pin
Nish Sivakumar20-Jun-14 5:15
mvpNish Sivakumar20-Jun-14 5:15 
GeneralRe: XCode question Pin
Ian Shlasko20-Jun-14 5:18
memberIan Shlasko20-Jun-14 5:18 
GeneralRe: XCode question Pin
Frank Alviani20-Jun-14 5:49
memberFrank Alviani20-Jun-14 5:49 
GeneralRe: XCode question Pin
PIEBALDconsult20-Jun-14 6:21
memberPIEBALDconsult20-Jun-14 6:21 
GeneralRe: XCode question Pin
Nemanja Trifunovic20-Jun-14 9:24
memberNemanja Trifunovic20-Jun-14 9:24 
GeneralRe: XCode question Pin
Dennis E White20-Jun-14 10:43
memberDennis E White20-Jun-14 10:43 
GeneralRe: XCode question Pin
Dennis E White20-Jun-14 10:48
memberDennis E White20-Jun-14 10:48 
GeneralDiscoveries Pin
John Simmons / outlaw programmer20-Jun-14 4:08
memberJohn Simmons / outlaw programmer20-Jun-14 4:08 
GeneralRe: Discoveries Pin
HomerTheGreat20-Jun-14 4:14
memberHomerTheGreat20-Jun-14 4:14 
GeneralRe: Discoveries Pin
PIEBALDconsult20-Jun-14 4:16
memberPIEBALDconsult20-Jun-14 4:16 
GeneralRe: Discoveries Pin
Pualee20-Jun-14 4:20
memberPualee20-Jun-14 4:20 
GeneralRe: Discoveries Pin
Richard Deeming20-Jun-14 4:32
professionalRichard Deeming20-Jun-14 4:32 
GeneralRe: Discoveries Pin
John Simmons / outlaw programmer20-Jun-14 4:53
memberJohn Simmons / outlaw programmer20-Jun-14 4:53 
GeneralRe: Discoveries Pin
Tim Carmichael20-Jun-14 5:41
memberTim Carmichael20-Jun-14 5:41 
GeneralRe: Discoveries Pin
Dan Neely20-Jun-14 5:41
memberDan Neely20-Jun-14 5:41 
GeneralRe: Discoveries Pin
newton.saber20-Jun-14 5:52
membernewton.saber20-Jun-14 5:52 
GeneralRe: Discoveries Pin
Sander Rossel20-Jun-14 7:40
professionalSander Rossel20-Jun-14 7:40 
GeneralI didn't realize this law was necessary Pin
Kschuler20-Jun-14 3:44
memberKschuler20-Jun-14 3:44 
GeneralRe: I didn't realize this law was necessary Pin
OriginalGriff20-Jun-14 4:11
protectorOriginalGriff20-Jun-14 4:11 
GeneralRe: I didn't realize this law was necessary Pin
Pualee20-Jun-14 4:23
memberPualee20-Jun-14 4:23 
GeneralRe: I didn't realize this law was necessary Pin
PapaCraft20-Jun-14 4:38
memberPapaCraft20-Jun-14 4:38 
GeneralRe: I didn't realize this law was necessary Pin
deflinek20-Jun-14 6:46
memberdeflinek20-Jun-14 6:46 
GeneralRe: I didn't realize this law was necessary Pin
Bergholt Stuttley Johnson20-Jun-14 4:55
memberBergholt Stuttley Johnson20-Jun-14 4:55 
GeneralRe: I didn't realize this law was necessary Pin
Maarten Kools20-Jun-14 5:14
professionalMaarten Kools20-Jun-14 5:14 
GeneralRe: I didn't realize this law was necessary Pin
Ian Shlasko20-Jun-14 5:14
memberIan Shlasko20-Jun-14 5:14 
GeneralRe: I didn't realize this law was necessary Pin
JimmyRopes20-Jun-14 6:17
memberJimmyRopes20-Jun-14 6:17 
GeneralRe: I didn't realize this law was necessary Pin
bling20-Jun-14 6:25
memberbling20-Jun-14 6:25 
GeneralRe: I didn't realize this law was necessary Pin
PIEBALDconsult20-Jun-14 7:49
memberPIEBALDconsult20-Jun-14 7:49 
GeneralRe: I didn't realize this law was necessary Pin
Ian Shlasko20-Jun-14 8:17
memberIan Shlasko20-Jun-14 8:17 
GeneralRe: I didn't realize this law was necessary Pin
OriginalGriff20-Jun-14 8:44
protectorOriginalGriff20-Jun-14 8:44 
GeneralRe: I didn't realize this law was necessary Pin
PIEBALDconsult20-Jun-14 14:13
memberPIEBALDconsult20-Jun-14 14:13 
GeneralRe: I didn't realize this law was necessary Pin
JimmyRopes20-Jun-14 18:18
memberJimmyRopes20-Jun-14 18:18 
GeneralRe: I didn't realize this law was necessary Pin
HomerTheGreat20-Jun-14 9:33
memberHomerTheGreat20-Jun-14 9:33 
JokeRe: I didn't realize this law was necessary Pin
PapaCraft20-Jun-14 12:58
memberPapaCraft20-Jun-14 12:58 
GeneralWell, I have one question today... Pin
glennPattonWork20-Jun-14 3:42
professionalglennPattonWork20-Jun-14 3:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 21 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid