initilalization of an IBOutlet object
initilalization of an IBOutlet object
- Subject: initilalization of an IBOutlet object
- From: "julien ricard" <email@hidden>
- Date: Fri, 18 May 2007 19:19:31 +0200
hello,
I would like to initialize a NSTextfield outlet using some string
(that will be set dynamically). I tried the init function shown below
with no success. Anybody can help or give pointers to help?
thank you
Julien
*****************miPluginController.h********************
/* miPluginController */
#import <Cocoa/Cocoa.h>
#import "updateCurrentSong.h"
@interface miPluginController : NSObject
{
IBOutlet NSTextField *currentTrackField;
IBOutlet updateCurrentSong *updateCurrentSong;
}
- (id)init;
- (IBAction)updateCurrentTrack:(id)sender;
@end
@implementation miPluginController
- (id)init
{
[super init];
[currentTrackField setStringValue:@"None"];
return self;
}
- (IBAction)updateCurrentTrack:(id)sender
{
[currentTrackField setStringValue:@"songName"];
}
@end
_______________________________________________
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