Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-27 Thread Matt Neuburg
On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock je...@ieee.org said: Yes. After studying this some more I see that, in older code, I did not declare outlets as properties. Instead, I put the IBOutlet directive on the ivar, @interface MyWinCon : NSWindowController { IBOutlet FooView

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-27 Thread David Duncan
On Sep 27, 2011, at 10:06 AM, Matt Neuburg wrote: On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock je...@ieee.org said: Yes. After studying this some more I see that, in older code, I did not declare outlets as properties. Instead, I put the IBOutlet directive on the ivar,

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-27 Thread Greg Parker
On Sep 27, 2011, at 10:06 AM, Matt Neuburg wrote: On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock je...@ieee.org said: Yes. After studying this some more I see that, in older code, I did not declare outlets as properties. Instead, I put the IBOutlet directive on the ivar, @interface

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-24 Thread Greg Guerin
Charles Srstka wrote: It’s a little disturbing that private instance variables can be altered so easily, but then I suppose the same thing could just as easily be done by a third-party monkeying with the ivar in a category. No programming language with direct memory access is ever

Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Jerry Krinock
When creating a new project in Xcode 4.1, I get a window which is declared in the app delegate as: @property (assign) IBOutlet NSWindow *window; and defined as @synthesize window ; Is this not going to create unnecessary unnecessary setter and getter implementations? Would not

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Charles Srstka
On Sep 23, 2011, at 5:24 PM, Jerry Krinock wrote: When creating a new project in Xcode 4.1, I get a window which is declared in the app delegate as: @property (assign) IBOutlet NSWindow *window; and defined as @synthesize window ; Is this not going to create unnecessary

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Quincey Morris
On Sep 23, 2011, at 15:24 , Jerry Krinock wrote: When creating a new project in Xcode 4.1, I get a window which is declared in the app delegate as: @property (assign) IBOutlet NSWindow *window; and defined as @synthesize window ; Is this not going to create unnecessary

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Greg Parker
On Sep 23, 2011, at 3:47 PM, Charles Srstka wrote: On Sep 23, 2011, at 5:24 PM, Jerry Krinock wrote: When creating a new project in Xcode 4.1, I get a window which is declared in the app delegate as: @property (assign) IBOutlet NSWindow *window; and defined as @synthesize window ;

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Charles Srstka
On Sep 23, 2011, at 6:06 PM, Greg Parker wrote: On Sep 23, 2011, at 3:47 PM, Charles Srstka wrote: On Sep 23, 2011, at 5:24 PM, Jerry Krinock wrote: When creating a new project in Xcode 4.1, I get a window which is declared in the app delegate as: @property (assign) IBOutlet NSWindow

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Greg Parker
On Sep 23, 2011, at 7:21 PM, Charles Srstka wrote: On Sep 23, 2011, at 6:06 PM, Greg Parker wrote: Nib connection on iOS uses KVC. Nib connection on OS X does not use KVC itself, but it does use a similar call method if it exists, set ivar directly if it does not algorithm. But how does

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Charles Srstka
On Sep 23, 2011, at 9:30 PM, Greg Parker wrote: On Sep 23, 2011, at 7:21 PM, Charles Srstka wrote: On Sep 23, 2011, at 6:06 PM, Greg Parker wrote: Nib connection on iOS uses KVC. Nib connection on OS X does not use KVC itself, but it does use a similar call method if it exists, set ivar

Re: Why does Xcode define IBOutlet with @synthesize?

2011-09-23 Thread Jerry Krinock
On 2011 Sep 23, at 15:57, Quincey Morris wrote: a. What do you mean by unnecessary? Your choices for an outlet are pretty much ivar or property. Are you suggesting the property is unnecessary because it could be an ivar instead? Yes. After studying this some more I see that, in older