Re: NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Jens Alfke
On Jun 9, 2014, at 5:03 AM, Devarshi Kulshreshtha wrote: > Any ideas on how to properly use NS_DESIGNATED_INITIALIZER? Are you using the Xcode 6 beta, and does your target use the OS X 10.10 or iOS 8 SDK? If not, that keyword isn’t defined (it’s a preprocessor macro) and will cause a syntax

Re: NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Michael Babin
On Jun 9, 2014, at 7:03 AM, Devarshi Kulshreshtha wrote: > I am trying to declare a designated initializer like this: > > - (instancetype)initWithDelegate:(id )delegate > NS_DESIGNATED_INITIALIZER; > > But it is showing me this compilation error: > > Expected ':' > > Interestingly when I try

NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Devarshi Kulshreshtha
I am trying to declare a designated initializer like this: - (instancetype)initWithDelegate:(id )delegate NS_DESIGNATED_INITIALIZER; But it is showing me this compilation error: Expected ':' Interestingly when I try to write it like this (reference link: https://developer.apple.com/library/prer