Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
On 27/08/2010, at 14:05, David Duncan wrote: > > On Aug 27, 2010, at 10:47 AM, Tito Ciuro wrote: > >> - (NSUInteger)systemPageSize >> { >> static NSUInteger __sSystemPageSize = NSNotFound; >> >> #if TARGET_OS_MAC >> if (NSNotFound == __sSystemPageSize) { >> NSTask *task = [[NSTask all

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
Excellent! Thanks Kyle! -- Tito On 27/08/2010, at 14:02, Kyle Sluder wrote: > Read this: > http://sealiesoftware.com/blog/archive/2010/8/16/TargetConditionalsh.html > > --Kyle Sluder > (Sent from the road) > > On Aug 27, 2010, at 1:47 PM, Tito Ciuro wrote: > >> Hello, >> >> I have code th

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread David Duncan
On Aug 27, 2010, at 10:47 AM, Tito Ciuro wrote: > - (NSUInteger)systemPageSize > { >static NSUInteger __sSystemPageSize = NSNotFound; > > #if TARGET_OS_MAC >if (NSNotFound == __sSystemPageSize) { >NSTask *task = [[NSTask alloc] init]; > >// > >[task release]; >

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Kyle Sluder
Read this: http://sealiesoftware.com/blog/archive/2010/8/16/TargetConditionalsh.html --Kyle Sluder (Sent from the road) On Aug 27, 2010, at 1:47 PM, Tito Ciuro wrote: > Hello, > > I have code that's part of a framework and I'd like to port it to iOS. I > tried isolating the code like so: >

TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread Tito Ciuro
Hello, I have code that's part of a framework and I'd like to port it to iOS. I tried isolating the code like so: // // RootViewController.m // iPhoneTest #import "RootViewController.h" @implementation RootViewController #pragma mark - #pragma mark View lifecycle - (void)viewWillAppear:(B