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

Re: principalClass crashes


  • Subject: Re: principalClass crashes
  • From: Chuck Soper <email@hidden>
  • Date: Wed, 2 Nov 2005 10:16:16 -0800

Morgan,

What is the value of pluginBundle? How are you setting it? Please post.

I suggest:
NSBundle *pluginBundle = [NSBundle bundleForClass:[self class]];

Of course, the location of this line is important. What kind of plug-in are you writing?

Chuck

At 1:29 AM -0500 11/2/05, Morgan Winer wrote:
For a certain plugin class, whenever I call the line below, my program crashes.
Class theclass = [pluginBundle principalClass];
From what I can tell from the debugger, with this line included, any other object instantiation is what causes the SIGTRAP.
However, if I step through the code line-by-line until the plugins are loaded, then the rest of the program will run fine.
Is this some sort of weird race condition? A namespace collision? the plugin & app rely on a lot of the same classes.


Any help would be appreciated,
- Morgan
_______________________________________________
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: principalClass crashes
      • From: Morgan Winer <email@hidden>
References: 
 >principalClass crashes (From: Morgan Winer <email@hidden>)

  • Prev by Date: Re: Two questions on CoreData
  • Next by Date: Re: Subclassing NSSearchFieldCell
  • Previous by thread: Re: principalClass crashes
  • Next by thread: Re: principalClass crashes
  • Index(es):
    • Date
    • Thread