Hi Michael,

Michael Vannorsdel wrote:

Subclass NSView and use poseAsClass to replace the default
implementation.  You'll need to do the posing before running
NSApplicationMain.  You'll have to use a different approach if you're
building for 64-bit.

That's intriguing. I thought with the dynamic nature of Objective-C something like that might be possible. There are a couple of drawbacks though. One is that I do need to build for 64 bit, that is actually the reason I've ported my framework from Carbon to Cocoa. The other is that posing classes can't add instance variables, which I would need to do. Thanks all the same, something new learnt even if it is deprecated :-).

Regards,

Jo Meder

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to