• 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: What defines if an objective C class is visible outside a bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What defines if an objective C class is visible outside a bundle?


  • Subject: Re: What defines if an objective C class is visible outside a bundle?
  • From: Jon Hodgson <email@hidden>
  • Date: Tue, 09 Oct 2012 13:19:22 +0100

>
> You can look at the NSBundleDidLoadNotification notification, which reports the classnames that are loaded through the NSLoadedClasses key in the user info.

I'll try that, think I've managed to work out how trawling through the
Docs, whatever happened to nice complete examples?

>> Also, are all objective C classes in a bundle automatically visible
>> systemwide, or only specific ones? From what you say it seems all of
>> them?
>>
>
> I assume you don't really mean "systemwide," I assume you mean process wide.

Yes, sorry

> The only explanation to me seems to be that the class was already defined somewhere else. So can you get the class through NSClassFromString()? And why don't you want to use that? And when you have the class, you can check where it comes from using +[NSBundle bundleForClass:].

It's not a case of not wanting to use NSClassFromString, it's a case
of not getting a choice, my task here is not to GET the class, it is
to PROVIDE it, I'm writing the Audiounit, the code I listed earlier is
how the Juce Host gets the class for a view, and it\s there where
things are going wrong, I can change host code there for the purposes
of tracking down the problem, but I can't control what's done inside
the actual hosts the plugin will be used in.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What defines if an objective C class is visible outside a bundle? (From: Jon Hodgson <email@hidden>)
 >Re: What defines if an objective C class is visible outside a bundle? (From: Jens Alfke <email@hidden>)
 >Re: What defines if an objective C class is visible outside a bundle? (From: Jon Hodgson <email@hidden>)
 >Re: What defines if an objective C class is visible outside a bundle? (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: What defines if an objective C class is visible outside a bundle?
  • Next by Date: Xcode shows project file as text??
  • Previous by thread: Re: What defines if an objective C class is visible outside a bundle?
  • Next by thread: Re: What defines if an objective C class is visible outside a bundle?
  • Index(es):
    • Date
    • Thread