• 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: SOLVED: Workaround to force painting of NSSplitView's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED: Workaround to force painting of NSSplitView's


  • Subject: Re: SOLVED: Workaround to force painting of NSSplitView's
  • From: Andy Lee <email@hidden>
  • Date: Fri, 15 Mar 2002 21:28:00 -0500

At 6:15 PM -0800 3/15/02, John C. Randolph wrote:
>On Friday, March 15, 2002, at 05:59 PM, email@hidden wrote:
>
>>>>I'm switching an NSSplitView in between vertical and horizontal
>>>>orientation by user input, and I have found that switching a
>>>>visible NSSplitView's orientation doesn't cause the split bar
>>>>(the area between the two panes) to redraw properly... you see
>>>>the remanents of what was there before the split view changed.
>>>
>>>Ah, I found a workaround. invoke adjustSubviews on the
>>>splitview after changing its orientation.
>>
>> Maybe I'm not understanding the problem, but [splitview setNeedsDisplay:YES] seems like it might be more straightforward. Does that not work?
>
>I wouldn't expect -setNeedsDisplay: to cause an NSSplitView to re-tile its subviews.
>

My reading of the original problem was that it was a drawing problem, not a layout problem, but it might have been both. I was wondering myself if -setNeedsDisplay: would work, but it seemed too obvious...

--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: SOLVED: Workaround to force painting of NSSplitView's (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: SOLVED: Workaround to force painting of NSSplitView's
  • Next by Date: Re: SOLVED: Workaround to force painting of NSSplitView's
  • Previous by thread: Re: SOLVED: Workaround to force painting of NSSplitView's
  • Next by thread: Re: SOLVED: Workaround to force painting of NSSplitView's
  • Index(es):
    • Date
    • Thread