• 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
Re: Bezier folies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bezier folies
      • From: Tom Waters <email@hidden>
  • Prev by Date: Pop out menu in Finder Menu?
  • Next by Date: using standard C ANSI typedef struct
  • Previous by thread: Bezier folies
  • Next by thread: Re: Bezier folies
  • Index(es):
    • Date
    • Thread