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 PinpremiumDuncan Edwards Jones20-Jun-14 5:44 
GeneralRe: Admit it NOW PinprotectorOriginalGriff20-Jun-14 5:48 
GeneralRe: Admit it NOW PinpremiumDuncan Edwards Jones20-Jun-14 6:10 
GeneralRe: Admit it NOW PinmemberIan Shlasko20-Jun-14 5:47 
GeneralRe: Admit it NOW PinpremiumKenneth Haugland20-Jun-14 5:50 
GeneralRe: Admit it NOW PinpremiumPIEBALDconsult20-Jun-14 6:03 
GeneralRe: Admit it NOW PinpremiumKenneth 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 PinpremiumDan 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.
 

Mike
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 PinpremiumPIEBALDconsult20-Jun-14 6:21 
GeneralRe: XCode question PinpremiumNemanja Trifunovic20-Jun-14 9:24 
GeneralRe: XCode question PinpremiumDennis E White20-Jun-14 10:43 
GeneralRe: XCode question PinpremiumDennis E White20-Jun-14 10:48 
GeneralDiscoveries [modified] PinpremiumJohn Simmons / outlaw programmer20-Jun-14 4:08 
GeneralRe: Discoveries PinmemberHomerTheGreat20-Jun-14 4:14 
GeneralRe: Discoveries PinpremiumPIEBALDconsult20-Jun-14 4:16 
GeneralRe: Discoveries PinmemberPualee20-Jun-14 4:20 
GeneralRe: Discoveries PinprofessionalRichard Deeming20-Jun-14 4:32 
GeneralRe: Discoveries PinpremiumJohn 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 Pinpremiumnewton.saber20-Jun-14 5:52 
GeneralRe: Discoveries PinpremiumSander Rossel20-Jun-14 7:40 
GeneralI didn't realize this law was necessary PinmemberKschuler20-Jun-14 3:44 
GeneralRe: I didn't realize this law was necessary PinprotectorOriginalGriff20-Jun-14 4:11 
GeneralRe: I didn't realize this law was necessary PinmemberPualee20-Jun-14 4:23 
GeneralRe: I didn't realize this law was necessary PinmemberPapaCraft20-Jun-14 4:38 
GeneralRe: I didn't realize this law was necessary Pinmemberdeflinek20-Jun-14 6:46 
GeneralRe: I didn't realize this law was necessary PinmemberBergholt Stuttley Johnson20-Jun-14 4:55 
GeneralRe: I didn't realize this law was necessary PinprofessionalMaarten Kools20-Jun-14 5:14 
GeneralRe: I didn't realize this law was necessary PinmemberIan Shlasko20-Jun-14 5:14 
GeneralRe: I didn't realize this law was necessary PinmemberJimmyRopes20-Jun-14 6:17 
GeneralRe: I didn't realize this law was necessary Pinmemberbling20-Jun-14 6:25 
GeneralRe: I didn't realize this law was necessary PinpremiumPIEBALDconsult20-Jun-14 7:49 
GeneralRe: I didn't realize this law was necessary PinmemberIan Shlasko20-Jun-14 8:17 
GeneralRe: I didn't realize this law was necessary PinprotectorOriginalGriff20-Jun-14 8:44 
GeneralRe: I didn't realize this law was necessary PinpremiumPIEBALDconsult20-Jun-14 14:13 
GeneralRe: I didn't realize this law was necessary PinmemberJimmyRopes20-Jun-14 18:18 
GeneralRe: I didn't realize this law was necessary PinmemberHomerTheGreat20-Jun-14 9:33 
JokeRe: I didn't realize this law was necessary PinmemberPapaCraft20-Jun-14 12:58 
GeneralWell, I have one question today... PinprofessionalglennPattonWork20-Jun-14 3:42 

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
Web04 | 2.8.140721.1 | Last Updated 28 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid