Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread ecir hana
On Sat, Jul 7, 2012 at 6:30 AM, Ken Thomases wrote: > > > > Thank you. And please, can you explain to me why is it that case? Is it > simply because AppKit includes the definition of NSTextViewDelegate > protocol and not includes one for NSApplicationDelegate? > > Correct. > > > Is it somewhere d

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread Ken Thomases
On Jul 6, 2012, at 1:01 PM, Stephen J. Butler wrote: > On Fri, Jul 6, 2012 at 4:35 AM, ecir hana wrote: >> Sorry I should've said that before: no, I'm on 10.6. >> >> But thanks for the reply! > > You're positive you're linking against the 10.6 SDK? Even if you're on > 10.6 you might be linking

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread Kyle Sluder
On Fri, Jul 6, 2012, at 10:00 PM, ecir hana wrote: > On Fri, Jul 6, 2012 at 8:01 PM, Stephen J. Butler > wrote: > > > > > You're positive you're linking against the 10.6 SDK? Even if you're on > > 10.6 you might be linking against the 10.5 SDK and that would explain > > your problem perfectly. > >

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread ecir hana
On Fri, Jul 6, 2012 at 8:01 PM, Stephen J. Butler wrote: > > You're positive you're linking against the 10.6 SDK? Even if you're on > 10.6 you might be linking against the 10.5 SDK and that would explain > your problem perfectly. > > NSAppKitVersionNumber says "1038.36" which is 10.6.

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread Stephen J. Butler
On Fri, Jul 6, 2012 at 4:35 AM, ecir hana wrote: > Sorry I should've said that before: no, I'm on 10.6. > > But thanks for the reply! You're positive you're linking against the 10.6 SDK? Even if you're on 10.6 you might be linking against the 10.5 SDK and that would explain your problem perfectly

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread ecir hana
On Fri, Jul 6, 2012 at 11:56 AM, Ken Thomases wrote: > > Is there a way to get NSApplicationDelegate protocol besides the > > compile-time "@protocol()"? > > No. The run-time information about the protocol is obtained from > information that would have to have been baked into the executable at b

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread Ken Thomases
On Jul 6, 2012, at 3:30 AM, ecir hana wrote: > I'm trying to get the methods a protocol specifies and just stumbled upon > one problem: the following code returns NULL: > >Protocol *protocol = objc_getProtocol("NSApplicationDelegate"); > > I saw ( > http://stackoverflow.com/questions/1021211

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread ecir hana
Sorry I should've said that before: no, I'm on 10.6. But thanks for the reply! On Fri, Jul 6, 2012 at 11:14 AM, Stephen J. Butler wrote: > On Fri, Jul 6, 2012 at 3:30 AM, ecir hana wrote: > > I'm trying to get the methods a protocol specifies and just stumbled upon > > one problem: the followi

Re: Getting NSApplicationDelegate protocol

2012-07-06 Thread Stephen J. Butler
On Fri, Jul 6, 2012 at 3:30 AM, ecir hana wrote: > I'm trying to get the methods a protocol specifies and just stumbled upon > one problem: the following code returns NULL: > > Protocol *protocol = objc_getProtocol("NSApplicationDelegate"); Are you trying this on 10.5? Or are you building thi

Getting NSApplicationDelegate protocol

2012-07-06 Thread ecir hana
Hello, I'm trying to get the methods a protocol specifies and just stumbled upon one problem: the following code returns NULL: Protocol *protocol = objc_getProtocol("NSApplicationDelegate"); I saw ( http://stackoverflow.com/questions/10212119/objc-getprotocol-returns-null-for-nsapplicationde