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 up one according to the object you passed to the call. (Sorry for my C++ semasiology)
My hypothesis works well with method calls with no parameters. e.g. , you cal write: [myObj performSelector: (SEL)"someMethod"]; Though when it comes to method with parameters, it looks like a total different story. NSSelectorFromString(); works fine, but the approach above throws exceptions. Anyone knows why? Thanks. Regards, DairyKnight _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
