Re: makeKeyandOrderFront not working.
Re: makeKeyandOrderFront not working.
- Subject: Re: makeKeyandOrderFront not working.
- From: <email@hidden>
- Date: Mon, 16 Apr 2007 13:57:04 +0530
- Thread-topic: Re: makeKeyandOrderFront not working.
Hi Andy,
Oops that was a typo error.... :(
Yeah I am making a call to makeKeyAndOrderFront: with one argument.
The method seems to be working fine when my panel is a part of my main
class,
but fails when I try making the my panel a member of a different class.
I am not very sure if I am following the right steps but this is how I
have done it.
1. Created my nib files
2. Created my main class.
3. Create the files(.mm and .h)
4. Instantiate my main class.
5. Make connections for main class
6. Created my panel's nib files
7. Created my panel's class.
8. Create the files(.mm and .h)
9. Instantiate my Panel's class.
10. Make connections
In the program, I create an object of my panel's class myObj
and call the method myMethod
code snippet from mainWindow.mm
myObj = [[myClass alloc]init];
[myObj myMethod]; //
code snippet from myPanel.mm
-(void)myMethod
{
[myPanel makeKeyAndOrderFront:self];
}
Is this right or am I going wrong somewhere?
-Amrit
------------------------------------------------------------------------
------------------
Date: Mon, 16 Apr 2007 03:33:31 -0400
From: Andy Lee <email@hidden>
Subject: Re: makeKeyandOrderFront not working.
To: Cocoa-dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On Apr 16, 2007, at 3:11 AM, email@hidden wrote:
> Why is makeKeyandOrderFront not working?
Do you get any compiler warnings?
Are you calling makeKeyandOrderFront or makeKeyAndOrderFront: (with
one argument and a capital "A" in "And")?
--Andy
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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