• 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: Window not displaying
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window not displaying


  • Subject: Re: Window not displaying
  • From: rethish <email@hidden>
  • Date: Wed, 01 Jul 2009 10:58:12 +0530
  • Thread-topic: Window not displaying

@implementation SendWindowClass

-(void)openNew
{
      [ScheduleWindow makeKeyAndOrderFront:self];
}

-(IBAction)newWindow:(id)sender
{
       [ScheduleWindow makeKeyAndOrderFront:self];
}

@end


@implementation controller

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    SendWindowClass *obj =[[SendWindowClass alloc] init];

    [obj openNew];


}








On 6/30/09 8:44 PM, "Nick Zitzmann" <email@hidden> wrote:

>
> On Jun 30, 2009, at 6:13 AM, rethish wrote:
>
>> When I use the makeKeyAndOrderFront:  method in a  action method of a
>> NSButton , new window is displayed.
>> But I used the same method in a void function and when its called ,the
>> window is not displayed.
>> Why is it so?
>
>
> Are you sure the window object has been instantiated at that time, and
> are you sure that you are not calling the method in a thread other
> than the main thread? Can you please show your code?
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>


_______________________________________________

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: Window not displaying
      • From: Andrew Farmer <email@hidden>
References: 
 >Re: Window not displaying (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Programmatically adding to one big Finder selection ?
  • Next by Date: Re: Dynamic Services menu, CM plug-in alternatives
  • Previous by thread: Re: Window not displaying
  • Next by thread: Re: Window not displaying
  • Index(es):
    • Date
    • Thread