• 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
Header Differences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Header Differences


  • Subject: Header Differences
  • From: Chunk 1978 <email@hidden>
  • Date: Mon, 25 May 2009 00:51:45 -0400

i'm following a tutorial that lists the header file like this:


-=-=-=-=-
@interface PickersAppDelegate : NSObject <UIApplicationDelegate>
	{
	IBOutlet UIWindow *window;
	IBOutlet UITabBarController *rootController;
	}

@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UITabBarController *rootController;
-=-=-=-=-


but IB automatically sets the IBOutlet as part of the @property and
not in the declaration struct like this:


-=-=-=-=-
@interface PickersAppDelegate : NSObject <UIApplicationDelegate>
	{
	UIWindow *window;
	UITabBarController *rootController;
	}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *rootController;
-=-=-=-=-


is there a difference?  which one should be used?  also, just to clear
things up for me a bit, is it safe to assume that everything listed in
the declaration struct should also have getter and setter methods with
@property/@synthesize?
_______________________________________________

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: Header Differences
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Core Data and ordered to-many relations
  • Next by Date: Re: Header Differences
  • Previous by thread: Positioning images in buttons?
  • Next by thread: Re: Header Differences
  • Index(es):
    • Date
    • Thread