• 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: Addition to: Drawingorder of subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Addition to: Drawingorder of subviews


  • Subject: Re: Addition to: Drawingorder of subviews
  • From: Hsu <email@hidden>
  • Date: Sat, 13 Jan 2007 16:41:41 -0800

Make sure that optimized drawing is turned off for all your views.

If both the resize rects and the resizable view are peer subviews of the same superview, you may have to propagate dirty rects manually (i.e. if the resizable view is marked dirty in an area covered by a resize rect, you may need to figure that out and call setNeedsDisplay explicitly on the little rect).

You may also cheat a little by making the resize rects subviews of the resizable view. If they need to draw "outside of the bounds" of the resizable view, make the resizable view a little bigger and just draw the edges transparent (the same way you would make a non- rectangular view).

Karl


On Jan 9, 2007, at 2:58 PM, Ferhat Ayaz wrote:

I'm implementing a view, which you can resize it by dragging the little rects in the edges of the view. The rects are also NSViews.
But sometimes the rects disappear because the inner view is drawn later then my rects on the edges. How can I implement it in another way?



On Jan 9, 2007, at 11:47 PM, I. Savant wrote:


The more important information for you to provide is "why". Why are you asking / what are you trying to do?


--
I.S.


On Jan 9, 2007, at 5:42 PM, Ferhat Ayaz wrote:

Hello,

I think I must add some more info, sorry.

My question is based on the manually added subviews. with

[view addSubview:view1];
[view addSubview:view2];
[view addSubview:view3];

will they be drawn in the same order? view1, view2, view3?
 I know that subviews, after wake up from nib, are not ordered.


Begin forwarded message:

From: Ferhat Ayaz <email@hidden>
Date: January 9, 2007 11:35:41 PM GMT+01:00
To: Cocoa Dev <email@hidden>
Subject: Drawingorder of subviews

Hello,

a short question: Is it possible to set the drawing order of subviews of NSView?

thanks,
ferhat

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40gmail.com


This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40earthlink.net


This email sent to email@hidden

--

Your mission, should you choose to accept it, is to flallop about wildly.

Homepage:
     http://homepage.mac.com/khsu/index.html

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Drawingorder of subviews (From: Ferhat Ayaz <email@hidden>)
 >Addition to: Drawingorder of subviews (From: Ferhat Ayaz <email@hidden>)
 >Re: Addition to: Drawingorder of subviews (From: "I. Savant" <email@hidden>)
 >Re: Addition to: Drawingorder of subviews (From: Ferhat Ayaz <email@hidden>)

  • Prev by Date: Re: Replacing NSTextView with custom view?
  • Next by Date: Re: NSTextField text changed
  • Previous by thread: Re: Addition to: Drawingorder of subviews
  • Next by thread: NSTextView vs NSScrollView problem
  • Index(es):
    • Date
    • Thread