Click here to Skip to main content
12,357,105 members (77,203 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

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
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 

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
Web01 | 2.8.160621.1 | Last Updated 30 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid