Re: Preference Pane
Re: Preference Pane
- Subject: Re: Preference Pane
- From: Patrick Machielse <email@hidden>
- Date: Wed, 27 Oct 2004 11:43:07 +0200
op 27-10-2004 00:28 schreef Alexander Griekspoor
>
I'm developing a preference pane for a small app to control. Among
>
others it contains a custom view that animates (i.e. using
>
performSelector: afterDelay:), and which is controlled by the main
>
controller (NSPreferencePane subclass). Although working beautifully in
>
a quick and dirty prototype standalone app, it stopped working when
>
moving to a real preference pane. It is drawn correctly at first, but
>
not refreshed when it should. Anyone had similar experiences before?
What tricked me initially while developing a pref pane is that NSApp refers
to System Preferences, not to the prefpane. As a result +[NSBundle
mainBundle] gives you the main bundle of System Preferences, and methods
that implicitly rely on that, f.i. +[NSImage imageNamed:] will search in the
'wrong' place.
Maybe something similar is tripping up your code?
Groeten,
Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden