• 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: How do I display a Window from a bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I display a Window from a bundle?


  • Subject: Re: How do I display a Window from a bundle?
  • From: publiclook <email@hidden>
  • Date: Thu, 31 Jul 2003 21:34:55 -0400

On Thursday, July 31, 2003, at 08:56 PM, Andy Satori wrote:

That might help might it :-)

in the test app

NSBundle *b = [NSBundle bundleWithPath:[[NSBundle mainBundle]
pathForResource:@"BundleTestLib" ofType:@"bundle"]];
NSLog(@"bundle loaded %@", b);

id bundleClass = NSAllocateObject([b principalClass], 0, NSDefaultMallocZone());
NSLog(@"loaded class %@", bundleClass);
[bundleClass init];

How about
id bundleClass = [[[b principalClass] alloc] init];

[bundleClass showWindow]; // a method I implemented to try and force the issue


in the bundle's primary class

- (void) showWindow
{
[window display];
NSLog(@"window display");
}


Is the window variable initialized to anything ? Are you sure window isn't nil ? Do you see the "window display" log. How about NSLog(@"window display %@", window); ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: How do I display a Window from a bundle? (From: Andy Satori <email@hidden>)

  • Prev by Date: Re: How do I display a Window from a bundle?
  • Next by Date: Open source version of cocoa
  • Previous by thread: Re: How do I display a Window from a bundle?
  • Next by thread: Java Complier
  • Index(es):
    • Date
    • Thread