• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
initilalization of an IBOutlet object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: initilalization of an IBOutlet object
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: How do I make a singleton object AppleScriptable?
  • Next by Date: Re: initilalization of an IBOutlet object
  • Previous by thread: Re: Core Data application types
  • Next by thread: Re: initilalization of an IBOutlet object
  • Index(es):
    • Date
    • Thread