• 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: multiple objects in my view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple objects in my view


  • Subject: Re: multiple objects in my view
  • From: Gorazd Krosl <email@hidden>
  • Date: Tue, 30 Aug 2005 14:32:18 -0400 (EDT)

Hi Francesca,

 You don't use NSRect. The dedicated drawing method in
NSView is called (has a signature)
-(void)drawRect:(NSRect)rect.
The <rect> parameter is telling you which part of the
NSView is dirty (needs a redraw), such that you can
optimize your drawing. In the case that you have many
images which may not fit in the visible portion of the
view, you may want to use NSScrollView instead of the
NSView. The drawing handled in -drawRect: method as in
NSView.
  My suggestion is that you carefully read (re-read)
documentation for NSView, especially the section that
covers the drawing.
  Also, you may want to consider NSMatrix for handling
the spatial organization of images in your view.

Hope that helps a little,
Gorazd


> Il giorno 30/ago/05, alle ore 14:10, Fabian Spillner
> ha scritto:
>
> > You can subclass the NSView class,
> > create setter and getter methods for array
> > of images which can be drawn in your
drawRect:(NSRect)rect method
> > by you.
> >
> > After getting the new array from apple script
> > you should set the array of your nsview.
> >
>
>
>
>
> Mmh,
> ok,
> but I don't understand why I have to use NSRect. I
have not to draw a
> rectangle.
> I have to display n images, and they has to be in
different boxes
> because after I want the possibility to oper in a
larger window etc
> etc...
>
> Could you explain me better your ideas?
> Thank you, and sorry for all these question, but I'm
> newbie...
>
> thanks







__________________________________________________________
Find your next car at http://autos.yahoo.ca
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Unarchive Data from URL (was Can't Convert Image...)
  • Next by Date: Interface Builder Palette error
  • Previous by thread: Re: multiple objects in my view
  • Next by thread: +[NSFont fontWithName:matrix:] broken in Tiger?
  • Index(es):
    • Date
    • Thread