Re: IB instantiating objects
Re: IB instantiating objects
- Subject: Re: IB instantiating objects
- From: Jonathan Hess <email@hidden>
- Date: Mon, 23 Mar 2009 18:02:54 -0700
Hey Josef -
When IB instantiates an object in a NIB file that has the custom class
set, it will instantiate it with either init, initWithFrame:, or
initWithCoder: depending on the type of object.
Here's a link tot he relevant documentation:
http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/10000051i-CH4-SW19
Jon Hess
On Mar 23, 2009, at 5:36 PM, Gmail wrote:
NO, it supports subclassing. Do you know what method I could
override (and return my instance) before the NIB is loaded so I can
control it's isntance variables? I think maybe a low-level protocol
like init could perhaps work. Thanks.
On Mar 24, 2009, at 12:15 AM, Bill Bumgarner wrote:
On Mar 22, 2009, at 6:26 PM, Gmail wrote:
Is there anyone who is aware how this was accomplished by the
other bridges or if I can force IB to not instantiate the classes,
or maybe replace the instance with my own? It seems like I need a
way to access the instances of those classes inside the nib but I
don't think that can be done. Any ideas are greatly appreciated.
Thank you.
RubyCocoa and PyObjC work by creating the class before the NIB is
loaded. From your description, it sounds like your bridge
doesn't support subclassing. If so, that'll make your bridge
considerably more difficult to integrate with Cocoa.
b.bum
Regards,
Josef
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden