• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOExceptionPage (etc) customisation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOExceptionPage (etc) customisation


  • Subject: Re: WOExceptionPage (etc) customisation
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 8 Dec 2005 20:00:38 -0800

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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--
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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WOExceptionPage (etc) customisation (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Encrypted Database
  • Next by Date: RE: WOExceptionPage (etc) customisation
  • Previous by thread: WOExceptionPage (etc) customisation
  • Next by thread: RE: WOExceptionPage (etc) customisation
  • Index(es):
    • Date
    • Thread