Re: Accessing method from another class
Re: Accessing method from another class
- Subject: Re: Accessing method from another class
- From: Hasan Diwan <email@hidden>
- Date: Wed, 7 May 2003 10:53:44 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
@class Bar;
@interface FooToolbar:NSObject {
Bar *b;
}
- - (Bar *)b;
- - (void)setB:(Bar *)newB;
@end
@implementation
#import <Bar.h>
- - (Bar *)b { return b; }
- - (void)setB:(Bar *)newB { [b release]; [newB retain]; b = newB; }
@end
Format appropriately, untested.
On Wednesday, May 7, 2003, at 10:33 US/Pacific, Stephane Curzi wrote:
Hi, I have a newbie question here.
I've read a lot of documentation and I simply don't get how to access
the all the method from one class in another. I know how to do it in IB
with instantiate, but where I'm having trouble is with a toolbar that
need to access method in another class.
Can someone explain it simply or point me to a good example ?
Thank in advance
--
Stiphane Curzi
Tuphlem Grdlphump.
-- Opus
_______________________________________________
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.
Hasan Diwan {
http://ibn.com/~hdiwan}
OpenPGP Fingerprint: 275D 0E84 550C D92A 4A56 732C 8528 2579 E6E9 4842
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+uUguhSgleebpSEIRAtxdAJ41+DUJFhII1XZsOXNUqeOIGxyRWgCfbEQ0
rmtkHdBhogPUnRXKH6Fc4Pg=
=FZV7
-----END PGP SIGNATURE-----
_______________________________________________
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.