Re: How do I display a Window from a bundle?
Re: How do I display a Window from a bundle?
- Subject: Re: How do I display a Window from a bundle?
- From: Greg Hulands <email@hidden>
- Date: Fri, 01 Aug 2003 11:22:51 +1000
Have you tried [window makeKeyAndOrderFront:self];
from the docs on display
display
- (void) display
Passes a display message down the receivers view hierarchy, thus
redrawing all NSViews within the receiver, including the frame view
that draws the border, title bar, and other peripheral elements.
You rarely need to invoke this method. NSWindows normally record which
of their NSViews need display and display them automatically on each
pass through the event loop.
HTH,
Greg
On Friday, August 1, 2003, at 10:56 AM, 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];
>
>
[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");
>
}
>
>
and init just manually loads the nib, though I've done it both ways
>
>
>
On Thursday, July 31, 2003, at 08:51 PM, Greg Hulands wrote:
>
>
> Show us your code so we can diagnose what you are trying to achieve.
>
>
>
> Greg
>
>
>
> On Friday, August 1, 2003, at 10:03 AM, Andy Satori wrote:
>
>
>
>> It can't be that hard can it ? :-)
>
>>
>
>> I want to display a dialog or a window from an add-on via bundles,
>
>> for some reason, Ican't seem to get them to display. Does anyone
>
>> know of any example code I could look at to deal with this?
>
>>
>
>> Andy
>
>> _______________________________________________
>
>> 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.
>
_______________________________________________
>
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.
_______________________________________________
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.