Re: (newbie) drawer problem
Re: (newbie) drawer problem
- Subject: Re: (newbie) drawer problem
- From: email@hidden
- Date: Wed, 5 Mar 2003 09:29:29 +0100
In your mwController.h/m
- (NSDrawer *) getDrawer;
- (NSDrawer *) getDrawer
{
return end_drw;
}
In your speechManager.m file:
[[mymwController getDrawer] open];
If you don't have an instance of a mwController declared in your
speechManager class and pointing to the correct object, it won't work.
On mercredi, mars 5, 2003, at 07:27 AM, John Q. wrote:
Ok,
I have no idea what an accessor makes!!
I have only build an window with the PB and create this files with the
IB. Then I have make a class for some special actions and outlets and
create the class files with the IB too.
I open the drawer with [drawername open]; And the Debugger said sorry
the drawer outlet is not declared.
how can I declare an accessor method outlet?
the header file:
#import <Cocoa/Cocoa.h>
@interface mwController : NSObject
{
.
.
IBOutlet NSDrawer *end_drw;
.
.
}
.
.
@end
Thanks for help!!
Raphael
Am Dienstag, 04.03.03, um 19:18 Uhr (Europe/Berlin) schrieb olivier:
where do you try to access the drawer? Do you have an accessor for it
or do you try to access it directly? Did you declare the drawer as
public if you don't have accessors?
Olivier
On Tuesday, March 4, 2003, at 10:20 AM, John Q. wrote:
hi,
I have a Controller called mwController
in this Controller I have an IBOutlet drawer.
I would like to close this drawer from another controller called
speechcontroller
I have import the mwController.h in speechcontroller.m
And the debugger said, that the drawer is undeclared.
Can someone help me?
Thanks
john
_______________________________________________
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.