Click here to Skip to main content
15,891,184 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Admit it NOW Pin
Kenneth Haugland20-Jun-14 6:10
mvaKenneth Haugland20-Jun-14 6:10 
GeneralRe: Admit it NOW Pin
Abhinav S20-Jun-14 6:02
Abhinav S20-Jun-14 6:02 
GeneralRe: Admit it NOW Pin
OriginalGriff20-Jun-14 6:17
mveOriginalGriff20-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
JMK-NI20-Jun-14 7:44
professionalJMK-NI20-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
jeron120-Jun-14 8:31 
GeneralXCode question PinPopular
Michael Gledhill20-Jun-14 4:45
Michael Gledhill20-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 ?

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 PinPopular
dan!sh 20-Jun-14 4:54
professional dan!sh 20-Jun-14 4:54 
GeneralRe: XCode question Pin
Nish Nishant20-Jun-14 5:15
sitebuilderNish Nishant20-Jun-14 5:15 
GeneralRe: XCode question PinPopular
Ian Shlasko20-Jun-14 5:18
Ian Shlasko20-Jun-14 5:18 
GeneralRe: XCode question Pin
Frank Alviani20-Jun-14 5:49
Frank Alviani20-Jun-14 5:49 
GeneralRe: XCode question Pin
PIEBALDconsult20-Jun-14 6:21
mvePIEBALDconsult20-Jun-14 6:21 
GeneralRe: XCode question Pin
Nemanja Trifunovic20-Jun-14 9:24
Nemanja Trifunovic20-Jun-14 9:24 
GeneralRe: XCode question Pin
Dennis E White20-Jun-14 10:43
professionalDennis E White20-Jun-14 10:43 
GeneralRe: XCode question Pin
Dennis E White20-Jun-14 10:48
professionalDennis E White20-Jun-14 10:48 
GeneralMessage Removed Pin
20-Jun-14 4:40
mohammed shihab20-Jun-14 4:40 
GeneralMessage Removed PinPopular
20-Jun-14 4:48
professional dan!sh 20-Jun-14 4:48 
GeneralMessage Removed Pin
20-Jun-14 4:54
mve#realJSOP20-Jun-14 4:54 
GeneralDiscoveries Pin
#realJSOP20-Jun-14 4:08
mve#realJSOP20-Jun-14 4:08 
GeneralRe: Discoveries Pin
JMK-NI20-Jun-14 4:14
professionalJMK-NI20-Jun-14 4:14 
GeneralRe: Discoveries Pin
PIEBALDconsult20-Jun-14 4:16
mvePIEBALDconsult20-Jun-14 4:16 
GeneralRe: Discoveries Pin
Pualee20-Jun-14 4:20
Pualee20-Jun-14 4:20 
GeneralRe: Discoveries Pin
Richard Deeming20-Jun-14 4:32
mveRichard Deeming20-Jun-14 4:32 
GeneralRe: Discoveries Pin
#realJSOP20-Jun-14 4:53
mve#realJSOP20-Jun-14 4:53 

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.