RE: makeKeyandOrderFront not working.
RE: makeKeyandOrderFront not working.
- Subject: RE: makeKeyandOrderFront not working.
- From: <email@hidden>
- Date: Mon, 16 Apr 2007 14:54:46 +0530
- Thread-topic: makeKeyandOrderFront not working.
Hi Mradul,
I am a rookie with cocoa....
Could you please elaborate a bit please.
Regards,
Amrit
-----Original Message-----
From: Mradul Mandhanya [mailto:email@hidden]
Sent: Monday, April 16, 2007 2:41 PM
To: Amritendu Majumdar (WT01 - Semiconductors & Consumer Electronics)
Subject: RE: makeKeyandOrderFront not working.
Ofcourse that will be problem
Check the object value for "myPanel"
I am sure it is 'nil' in ur case.
Since you instantiated it in nib and made connection for that instance
so how do you get that connection in some other instance?
Regards,
Mradul Mandhanya
-----Original Message-----
From: cocoa-dev-bounces+mmandhanya=email@hidden
[mailto:cocoa-dev-bounces+mmandhanya=email@hidden] On
Behalf Of email@hidden
Sent: Monday, April 16, 2007 1:57 PM
To: email@hidden
Subject: 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
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