• 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: Dynamically loading NIB files with a common stem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically loading NIB files with a common stem


  • Subject: Re: Dynamically loading NIB files with a common stem
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 6 Jul 2011 09:10:22 -0700

On Jul 6, 2011, at 5:27 AM, Alexander Reichstadt wrote:

> NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@"nib" inDirectory:@"."];

It isn't necessary to use @"." here; you should be able to pass nil for that argument if the resources in question are not in a subdirectory.  From the header comments:  "subpath is a relative path to a subdirectory inside the relevant global or localized resource directory, and should be nil if the resource file in question is not in a subdirectory."

Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Dynamically loading NIB files with a common stem
      • From: vincent habchi <email@hidden>
References: 
 >Dynamically loading NIB files with a common stem (From: Vincent Habchi <email@hidden>)
 >Re: Dynamically loading NIB files with a common stem (From: Alexander Reichstadt <email@hidden>)

  • Prev by Date: Re: Delay in reading cookie using NSHttpCookieStorage
  • Next by Date: Re: NSDatePicker weirdness with time.
  • Previous by thread: Re: Dynamically loading NIB files with a common stem
  • Next by thread: Re: Dynamically loading NIB files with a common stem
  • Index(es):
    • Date
    • Thread