Re: Quick Simple Bundles Questions
Re: Quick Simple Bundles Questions
- Subject: Re: Quick Simple Bundles Questions
- From: Ondra Cada <email@hidden>
- Date: Mon, 21 Oct 2002 18:10:40 +0200
On Monday, October 21, 2002, at 05:32 , G Douglas Davidson wrote:
Is there a preferred way to have a bundle access a class from the main
application? If I use the class name, even if I define it via "@class
ClassName", I end up having link problems with the bundle.
Something like this works:
myClass = NSClassFromString(@"MyClass");
or I could set up some sort of a main callback routing class when I
initialize the bundle.
We've been always quite contented with the former (of course, in case of
heavily used ones caching them client side, but that were rare cases).
Matter of factly we went kinda farther, using a macro CLASS(classname)
which triggered a method of ours, and the method loaded the appropriate
bundle which contained the class on-demand. That's IMHO how a nice dynamic
ObjC stuff should look like.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.