• 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: Dynamically update drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically update drawRect


  • Subject: Re: Dynamically update drawRect
  • From: proger proger <email@hidden>
  • Date: Sun, 27 Dec 2009 11:51:57 +0200

So now i don't see how to solve this problem. I thought it's not very hard
problem - get data and paint it. Maybe i need to use other tools ? I think
with libSDL framework it's very simple to solve such thing. I'm wanted to
learn more about CG but seems even simple problem is too hard for me.

Maybe i need to MyView constructor add my program logic and invoke '[self
setNeedsDisplayInRect: suppliedRect]' ?

On Sun, Dec 27, 2009 at 11:37 AM, Andrew Farmer <email@hidden> wrote:

> On 27 Dec 2009, at 01:18, proger proger wrote:
> > I'm still don't know how to do it. As solution i see programmically
> create
> > MyView class and call drawRect function as i needed.
>
> There is rarely any good reason to call drawRect yourself. It should only
> be called by the AppKit drawing internals.
>
> > Because now MyView(NSView) is created by nib. And i can't call MyView
> class instance methods.
>
> Why not? This is the basis of most (non-KVO) view programming.
_______________________________________________

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

  • Follow-Ups:
    • Re: Dynamically update drawRect
      • From: Sherm Pendley <email@hidden>
References: 
 >Dynamically update drawRect (From: proger proger <email@hidden>)
 >Re: Dynamically update drawRect (From: Gideon King <email@hidden>)
 >Re: Dynamically update drawRect (From: Quincey Morris <email@hidden>)
 >Re: Dynamically update drawRect (From: proger proger <email@hidden>)
 >Re: Dynamically update drawRect (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Dynamically update drawRect
  • Next by Date: Re: Dynamically update drawRect
  • Previous by thread: Re: Dynamically update drawRect
  • Next by thread: Re: Dynamically update drawRect
  • Index(es):
    • Date
    • Thread