I am not sure I understand. You are creating a custom component
named WOExceptionPage? When it is in the application it is used
automatically, but not when in a framework? If so, I am not sure
what you expected. That fact that it works at all in the Application
is is probably (I am guessing) as you don't have it in a package or
the app bundle is loaded first. One of those is the case. What you
are seeing is an artifact of how a class (maybe Anjo will remind us
of the name, NSClassUtilities or something like that) resolves the
name of a class when it is not package qualified (e.g. pageWithName
("WOExceptionPage"). The fact that it works at all in the
Application is not something I would care to depend on.
The "right" way to do this is to override handleException in
Application to return your custom page. A slightly nasty way of
doing this is to add code to pageWithName in Application to swizzle
WOExceptionPage into com.foo.bar.WOExceptionPage.
Am I close?
Chuck
On Dec 8, 2005, at 6:40 PM, Lachlan Deck wrote:
Hi there,
I'm wanting to create a custom component for WOExceptionPage (and
for similar pages)....
I'm finding that if I create these in the application project - no
problems - but if they're in a custom framework they're not used.
Does anyone have any ideas on this?
Thanks.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]