Re: Variables: Why one way and not another?
Re: Variables: Why one way and not another?
- Subject: Re: Variables: Why one way and not another?
- From: Robert Borsuk <email@hidden>
- Date: Sat, 1 Nov 2003 11:08:00 -0500
Alastair,
So thinking it might be my project I tried another project and pasted
in the code I posted. Still nothing. I'm using XCode on Panther. Do
you think there might be a difference?
Rob
On Nov 1, 2003, at 10:51 AM, Alastair J.Houghton wrote:
On Saturday, November 1, 2003, at 03:33 pm, Robert Borsuk wrote:
Okay, let's take this a step further then. In my program I route
everything through the myview.m subclass. What I mean by that is
that I put a button on the window and join to an action contained in
the myview subclass. I set up the following (accessors removed for
simplicity):
[snip] (See previous e-mails in thread for code)
Button on the window has myButtonPress as an action. Whenever
drawRect is called the value of myInt is always 0. Window is always
open.
That code works fine when I try it (I click the button, my machine
beeps and the view draws a red rectangle rather than a blue one), so
it's some other problem.
BTW, you wouldn't normally have a view as the delegate of your
NSApplication object. It would normally be some sort of controller
object. It's perfectly permissible, of course, but unless you're
writing a very small program, you should be careful that your design
doesn't all end-up mashed together into one big class.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.