• 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: NSSplitView -drawDividerInRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView -drawDividerInRect


  • Subject: Re: NSSplitView -drawDividerInRect
  • From: koko <email@hidden>
  • Date: Sat, 05 Jan 2013 07:41:30 -0700

Now that you point this out it seems like the answer … sometimes we need a 'head slap'.

I already use  [NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:] to add a rectangle to a vertical splitter tracking area.

So it would be ….

1. Add a view configured as desired to the horz split view just below the splitter
2. Use thin splitter
3. Using  [NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:] specify splitter tracking  to the left and right of the controls in the center (not sure of this ..how to return a disconnected rect)


Thanks Graham.

-koko


On Jan 4, 2013, at 5:09 PM, Graham Cox wrote:

>
> On 05/01/2013, at 12:16 AM, koko <email@hidden> wrote:
>
>> I am currently drawing a custom divider via -drawDividerInRect but want to improve this and am not sure of the proper approach.
>>
>> I would like to draw a divider similar to that in the Xcode Utilities view which has the four buttons for Template, Code, Object and Media Libraries.
>>
>> This divider is interesting in that with the cursor over the divider and not a button it is the pane splitter and cursor and over a button it is the arrow.
>>
>> How is this divider created and drawn … ?
>
>
> I don't know how it's implemented, but my guess would be that it isn't a custom divider at all.
>
> NSplitView allows you, via its delegate, to specify a region that *acts* like the divider, even if it isn't. The panel with the buttons is probably just another view within the split view content, but which is added to the split view's divider area using [NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:]
>
> --Graham
>
>
>


_______________________________________________

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


References: 
 >NSSplitView -drawDividerInRect (From: koko <email@hidden>)
 >Re: NSSplitView -drawDividerInRect (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Image manipulation in 10.8
  • Next by Date: Re: Image manipulation in 10.8
  • Previous by thread: Re: NSSplitView -drawDividerInRect
  • Next by thread: Optimal height for WebView
  • Index(es):
    • Date
    • Thread