• 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
Framework Nibs Not Loading 10.4 to 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Framework Nibs Not Loading 10.4 to 10.3


  • Subject: Framework Nibs Not Loading 10.4 to 10.3
  • From: Ian McGregor <email@hidden>
  • Date: Sun, 22 May 2005 12:19:18 -0700

I am compiling a project in xcode 2.0 / gcc 4.0 which has a cross dev sdk of 10.3.9 and a deployment target of 10.3 (and so do all of my embedded frameworks). The problem I am experiencing, is that any nibs inside these frameworks will load in 10.4 but fail to load when the application is run under 10.3. Now I just moved this project from 10.3 and it works fine when compiled in an earlier version of xcode.

As an example of what is happening, in one of the embedded frameworks, there is a class which loads a nib called iub.

- (void)showWindow
{
if (!pvField) {
NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
NSLog(@"thisBundle: %@",[thisBundle description]);
NSString *nibPath = [thisBundle pathForResource:@"iub" ofType:@"nib"];
NSLog(@"Nib Path: %@",nibPath);
if (![NSBundle loadNibNamed:@"iub" owner:self]) {
NSLog(@"Failed to load iub.nib");
NSBeep();
return;
}
[[pvField window] setExcludedFromWindowsMenu:YES];
[[pvField window] setMenu:nil];
}


    [[pvField window] makeKeyAndOrderFront:self];
}

On 10.4, the console will return

2005-05-22 10:04:08.065 MyApp[15143] thisBundle: NSBundle </Users/ ianmcg/Documents/Cocoa/xcode builds/MyApp.app/Contents/Frameworks/ FinancialFrame.framework> (loaded)
2005-05-22 10:04:08.066 MyApp[15143] Nib Path: /Users/ianmcg/ Documents/Cocoa/xcode builds/MyApp.app/Contents/Frameworks/ FinancialFrame.framework/Resources/iub.nib


On 10.3.9 the console will return

2005-05-22 10:04:08.065 MyApp[487] thisBundle: NSBundle </Users/ ianmcg/Documents/Cocoa/xcode builds/MyApp.app/Contents/Frameworks/ FinancialFrame.framework> (loaded)
2005-05-22 10:04:08.066 MyApp[487] Nib Path: (null)
2005-05-22 10:04:08.066 MyApp[487] Filed to load iub.nib


So far this appears to be a problem with all nib files, from any embedded framework. Any ideas?

Cheers,

Ian
_______________________________________________
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: Framework Nibs Not Loading 10.4 to 10.3
      • From: j o a r <email@hidden>
  • Prev by Date: Re: [[eSellerateObject alloc] init] causes SIGTRAP
  • Next by Date: Re: [[eSellerateObject alloc] init] causes SIGTRAP
  • Previous by thread: Re: Scroll bars in combo boxes
  • Next by thread: Re: Framework Nibs Not Loading 10.4 to 10.3
  • Index(es):
    • Date
    • Thread