• 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: NSView Redrawing Issue ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView Redrawing Issue ...


  • Subject: Re: NSView Redrawing Issue ...
  • From: Mic Pringle <email@hidden>
  • Date: Thu, 26 Mar 2009 18:09:01 +0000

Hi Mike,

That was it, thank you for pointing that out.

Changed all instances where I'd used rect to [self bounds] and it works a charm.

-Mic

2009/3/26 Michael Ash <email@hidden>:
> On Wed, Mar 25, 2009 at 5:53 PM, Mic Pringle <email@hidden> wrote:
>> Hi,
>>
>> I've created a custom view to replicate the blue panel at the bottom
>> of the iPod Summary page in iTunes. All is well except that when I add
>> controls on top of this view (buttons etc) in IB, when the application
>> is launched the controls have thick gray borders around them until I
>> resize the window, at which point they disappear. If I then click any
>> on these controls, it then reappears until I again resize the window.
>>
>> I know I can do [customview setNeedsDisplay:YES] but in order for this
>> to work I would need to call it in every action connected to every
>> control that's placed on the view, and also I'm not sure where to put
>> it to get rid of the initial gray borders. Plus I want to update a
>> label in the view using bindings from a CoreData object so I can
>> really call setNeedsDisplay on that ??
>>
>> Surely there is something that I'm missing here to get the correct behavior ??
>
> This is almost certainly due to misusing the parameter to your
> -drawRect: method, as described here:
>
> http://cocoadev.com/index.pl?DrawRect
>
> Mike
> _______________________________________________
>
> 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
>
_______________________________________________

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: 
 >NSView Redrawing Issue ... (From: Mic Pringle <email@hidden>)
 >Re: NSView Redrawing Issue ... (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: KVC-KVO compliance - noob questions
  • Next by Date: Re: Converting a LDragTask to Cocoa's dragImage
  • Previous by thread: Re: NSView Redrawing Issue ...
  • Next by thread: GetProcessBundleLocation() -- no good in background agents!
  • Index(es):
    • Date
    • Thread