Click here to Skip to main content

Welcome to the Lounge


For lazing about and discussing anything in a software developer's life that takes your fancy.
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 and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.

GeneralRe: Admit it NOW PinprofessionalKenneth Haugland20-Jun-14 6:10 
GeneralRe: Admit it NOW PinmvpAbhinav S20-Jun-14 6:02 
GeneralRe: Admit it NOW PinprotectorOriginalGriff20-Jun-14 6:17 
GeneralRe: Admit it NOW PinprofessionalS Houghtelin20-Jun-14 6:41 
GeneralRe: Admit it NOW PinmemberHomerTheGreat20-Jun-14 7:44 
AnswerRe: Admit it NOW PinprofessionalDan Colasanti20-Jun-14 8:05 
JokeRe: Admit it NOW Pinmemberjeron120-Jun-14 8:31 
GeneralXCode question PinmemberMikeGledhill20-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.

Frustrated (and reluctant) XCode developer
GeneralRe: XCode question Pinmember d@nish 20-Jun-14 4:54 
GeneralRe: XCode question PinmvpNish Sivakumar20-Jun-14 5:15 
GeneralRe: XCode question PinmemberIan Shlasko20-Jun-14 5:18 
GeneralRe: XCode question PinmemberFrank Alviani20-Jun-14 5:49 
GeneralRe: XCode question PinmemberPIEBALDconsult20-Jun-14 6:21 
GeneralRe: XCode question PinmemberNemanja Trifunovic20-Jun-14 9:24 
GeneralRe: XCode question PinmemberDennis E White20-Jun-14 10:43 
GeneralRe: XCode question PinmemberDennis E White20-Jun-14 10:48 
GeneralDiscoveries [modified] PinmemberJohn Simmons / outlaw programmer20-Jun-14 4:08 
GeneralRe: Discoveries PinmemberHomerTheGreat20-Jun-14 4:14 
GeneralRe: Discoveries PinmemberPIEBALDconsult20-Jun-14 4:16 
GeneralRe: Discoveries PinmemberPualee20-Jun-14 4:20 
GeneralRe: Discoveries PinprofessionalRichard Deeming20-Jun-14 4:32 
GeneralRe: Discoveries PinmemberJohn Simmons / outlaw programmer20-Jun-14 4:53 
GeneralRe: Discoveries PinmemberTim Carmichael20-Jun-14 5:41 
GeneralRe: Discoveries PinmemberDan Neely20-Jun-14 5:41 
GeneralRe: Discoveries Pinmembernewton.saber20-Jun-14 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.141022.2 | Last Updated 24 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid