• 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
Using Properties at Outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Properties at Outlets


  • Subject: Using Properties at Outlets
  • From: Steve Sheets <email@hidden>
  • Date: Mon, 14 Apr 2008 00:46:54 -0400

Has anyone had any problems with creating Properties with Objective-C 2.0 that are also Outlets?

I been using this inside my code, and I want to be sure there is no problems with this. I create fairly standard (readonly) and (readwrite, copy) properties using ivars, @property and @synthesize. I place IBOutlet in front of the ivar like thus:



IBOutlet NSView* myView;
IBOutlet NSWindow* myWindow;

...

@property (readwrite, retain) NSView* myView;
@property (readonly) NSWindow* myWindow;

...

@synthesize myView;
@synthesize myWindow;

Sometimes the view or window are used as Outlets by the nib file, and other times the code creates them on the fly.

The documentation does not explicitly say you can do this. I just want to know if anyone has seen an issue?

Thanks,

Steve Sheets
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Using Properties at Outlets
      • From: Adam P Jenkins <email@hidden>
    • Re: Using Properties at Outlets
      • From: Randall Meadows <email@hidden>
    • Re: Using Properties at Outlets
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Running a "Choose Template" Sheet
  • Next by Date: Re: Using Properties at Outlets
  • Previous by thread: Re: Running a "Choose Template" Sheet
  • Next by thread: Re: Using Properties at Outlets
  • Index(es):
    • Date
    • Thread