Re: Bezier folies
Re: Bezier folies
- Subject: Re: Bezier folies
- From: email@hidden
- Date: Thu, 29 Nov 2001 10:54:57 -0600 (CST)
- Posted-date: Thu, 29 Nov 2001 10:54:59 -0600 (CST)
>
Hi everybody,
>
>
Do you remember I was toying around the NSBezierPath class ? Well, I've
>
decided to go a little step further and I'm now trying to implement a
>
little GUI. The main goal is : "I press a button and then a random curve
>
is generated".
>
Here are the step I've done so far:
>
>
1) I've created 2 interfaces: a NSView subclass and another "controller"
>
istantiated class for the gui...
>
>
2) ... I've #imported the NSView class inside the other...
>
>
3) ... I've made my NSPoints in the NSView class as @public ...
>
>
4) I try to access the points from the main class but it tells me it's
>
"undeclared" ?!?
>
>
How can it be possible ? How can I make a class gain variables and values
>
from a "brother" one ?!?
Better design would require that you define the variables as @private and then create accessor methods to access them/change them. That way you can use the standard [object_name method_name] syntax to access them.
If you want to learn more about accessor methods you may want to take a look at Recipe 1 of "Vermont Recipes" which is located at
http://www.stepwise.com/Articles/VermontRecipes/
>
Thank you in advance :-)
No problem. :D
>
>
--
>
Riccardo Santato
>
www.riccardosantato.com
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Andre Benassi