• 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: Preference Pane [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Preference Pane (From: Patrick Machielse <email@hidden>)

  • Prev by Date: Re: Preference Pane
  • Next by Date: Re: Cocoa Java futures, NDA's etc
  • Previous by thread: Re: Preference Pane
  • Next by thread: NSURLConnection and 404s
  • Index(es):
    • Date
    • Thread