Re: Dynamically loading NIB files with a common stem
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