Programatically creating NSMenu?

2009-04-08 Thread Daqi Pei
tatic Nibs work fine both running from Terminal and Finder. Again I'm doing this only to understand how the system works. Did I miss something or it's just the way the framework was designed? Regards, Daqi Pei ___ Cocoa-dev mailing list (

Re: Difference between SEL and const char* when sending a message?

2009-04-08 Thread Daqi Pei
Thanks for all your answers. I was doing that basically trying to understand how the runtime works. Guess I've got what I need. Thanks again! On Wed, Apr 8, 2009 at 3:21 PM, Sherm Pendley wrote: > On Wed, Apr 8, 2009 at 3:17 AM, Mark Ritchie wrote: > >> >> "You can not simply cast a C string to

Difference between SEL and const char* when sending a message?

2009-04-07 Thread Daqi Pei
Hi everyone. I'm new to Objective-C but I've been working with C++ for years. I'm trying to understand how the selector mechanism works. So far it seems to me that SEL is simply a wrapper for 'const char*', Obj-C compiler maintains a table of all method name - method function pointer pairs and pick