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

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

  • Follow-Ups:
    • Re: Preference Pane [solved]
      • From: Alexander Griekspoor <email@hidden>
References: 
 >Preference Pane (From: Alexander Griekspoor <email@hidden>)

  • Prev by Date: Re: C-library and framework
  • Next by Date: Re: Preference Pane [solved]
  • Previous by thread: Preference Pane
  • Next by thread: Re: Preference Pane [solved]
  • Index(es):
    • Date
    • Thread