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

Re: NSBundle


  • Subject: Re: NSBundle
  • From: Ali Ozer <email@hidden>
  • Date: Mon, 7 May 2001 19:26:13 -0700

> The right way to do it is [[NSBundle mainBundle] pathForResource:
> ofType: inDirectory:]. I'm not sure what the class method is supposed
> to be for, though.

The class method does the same search an NSBundle instance would, but
without creating an NSBundle instance. The directory argument is the
full path to the would-be bundle.

I believe the instance method of the same name treats the directory
argument as the subdir in the bundle, which is the use you were looking
for.

A bit confusing, and doesn't help that the doc links are somewhat messed
up.

Ali


References: 
 >Re: NSBundle (From: email@hidden)

  • Prev by Date: Inserting another tab in the Network control panel
  • Next by Date: continu to search info (Socket)
  • Previous by thread: Re: NSBundle
  • Next by thread: Inserting another tab in the Network control panel
  • Index(es):
    • Date
    • Thread