• 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
Need advice on custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need advice on custom view


  • Subject: Need advice on custom view
  • From: Rick Mann <email@hidden>
  • Date: Sun, 16 Dec 2007 19:05:49 -0800

Hi. Carbon programmer here. I'm working on a little app that lets you play with FFTs. I'm building it by following the Currency Converter bindings tutorial.

It consists of a window with a couple of custom views, and some additional controls. The top custom view shows the time-domain waveform, and the bottom shows the FFT of the view. The controls allow one to adjust the frequencies of the wave(s) in the first view, and adjust some sampling parameters.

I've got my view code drawing some basic stuff, but I don't really know how to connect my view to the "model": A class called SignalGenerator which holds the various parameters (like frequency, etc), as well as a method that returns the value of the signal at a given time. The controls are intended to be bound to that model.

How do I "properly" connect that model to my view? This is easy for me in Carbon, but I feel like there's only one "right" way to do it in Cocoa, and I don't know what that is.

Thanks for suggestions!

--
Rick

_______________________________________________

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


  • Prev by Date: Re: How do I get NSRect to be the same as CGRect?
  • Next by Date: Re: How do I get NSRect to be the same as CGRect?
  • Previous by thread: Fwd: How do I get NSRect to be the same as CGRect?
  • Next by thread: KeysCodes, Modifiers, ModifierMasks
  • Index(es):
    • Date
    • Thread