Re: Preference Pane [solved]
Re: Preference Pane [solved]
- Subject: Re: Preference Pane [solved]
- From: Alexander Griekspoor <email@hidden>
- Date: Wed, 27 Oct 2004 14:35:37 +0200
That's it! Indeed I was using the NSImage imageNamed: method that was
obviously searching in the wrong place. Thank you so much for helping
me out here, it was the last thing I would have checked otherwise...
Groetjes,
Alex
Op 27-okt-04 om 11:43 heeft Patrick Machielse het volgende geschreven:
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
**************************************************************
** Alexander Griekspoor **
**************************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: email@hidden
E-mail: email@hidden
Web:
http://www.mekentosj.com
MacOS X: The power of UNIX with the simplicity of the Mac
***************************************************************
_______________________________________________
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