• 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: drawing and setting pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing and setting pixels


  • Subject: Re: drawing and setting pixels
  • From: Darkshadow <email@hidden>
  • Date: Sat, 21 Jan 2006 07:33:46 -0500


On Jan 21, 2006, at 6:17 AM, j o a r wrote:


On 21 jan 2006, at 12.10, Robert Dell wrote:

ok, you run main and return nsapplication whatever. nsapplication is already running and when my nib file got loaded in my first version of the plugin, it overrode the main program's nib and the program crashed. so i have to hard code my stuff.

You can't "override" nib files, using OOP terminology, they're not classes. They might contain references to classes, but that's something else. Why did it crash? Do you know?



There's one case I can think of with a plugin, though I didn't see it crash the app. If you place a MainMenu instance in the plugin's nib file, it'll replace the application's main menu instance. I tripped up on that when I was playing around with making a pref pane for System Preferences. The main menu was totally replaced, and even switching back to the "main" view in System Preferences didn't bring the normal main menu back.


I just now tried this out again with a small test (when I had done this was back in 10.2), so it does still have that problem (at least in System Preferences).

So, perhaps the crash is because the application has an identically named resource in its nib file and the plugin's nib file is being used instead? I'm not sure if that happens in any instance other than the main menu though - I never tried. Just conjecture on my part there.


Darkshadow (aka Michael Nickerson)


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >drawing and setting pixels (From: Robert Dell <email@hidden>)
 >Re: drawing and setting pixels (From: Uli Kusterer <email@hidden>)
 >Re: drawing and setting pixels (From: Robert Dell <email@hidden>)
 >Re: drawing and setting pixels (From: Cameron Hayne <email@hidden>)
 >Re: drawing and setting pixels (From: Robert Dell <email@hidden>)
 >Re: drawing and setting pixels (From: j o a r <email@hidden>)
 >Re: drawing and setting pixels (From: Robert Dell <email@hidden>)
 >Re: drawing and setting pixels (From: j o a r <email@hidden>)

  • Prev by Date: Re: anotherDockProgram-help
  • Next by Date: Re: anotherDockProgram-help
  • Previous by thread: Re: drawing and setting pixels
  • Next by thread: Re: drawing and setting pixels
  • Index(es):
    • Date
    • Thread