• 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: Fixed pattern with colorWithPatternImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixed pattern with colorWithPatternImage


  • Subject: Re: Fixed pattern with colorWithPatternImage
  • From: Daniel - Area <email@hidden>
  • Date: Sat, 4 Sep 2010 14:13:22 -0300

Hey Quincey, thanks to answer.

My code is basically this:
http://pastie.org/1138167

a) Looking my code I think the issue is exactly what you said. But
what is the right object and properties to access the full size of the
view?

b) If is not ask too much, that way I'm trying to acheive the layout
that I sent in first email is the best way to do?

Thanks.

Sent from my iPad

On Saturday, September 4, 2010, Quincey Morris
<email@hidden> wrote:
> On Sep 3, 2010, at 13:16, Pessoal wrote:
>
>> I have a custom view called HeaderView and I need to draw a pattern in this
>> view. The final result that I want to achieve is this:
>> http://cl.ly/2F5q
>>
>> And it's working but when I resize the window and my drawRect is called the
>> pattern change his orientation. Like this:
>> http://cl.ly/2F8t
>
> (a) You might need to post your 'drawRect:' code so that we can see what's going on.
>
> (b) The *most common* cause of this kind of thing is misinterpreting the NSRect parameter to 'drawRect:'. It can be any (sub)part of the view, so you can't align your pattern to this rect. Instead, you must align your pattern to the view origin, regardless of what's being drawn.
>
> There are other possibilities, but this is a good place to start.
>
>
> _______________________________________________
>
> 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
>

--
Abraços,
Daniel Lopes
_______________________________________________

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

  • Follow-Ups:
    • Re: Fixed pattern with colorWithPatternImage
      • From: Quincey Morris <email@hidden>
References: 
 >Fixed pattern with colorWithPatternImage (From: Pessoal <email@hidden>)
 >Re: Fixed pattern with colorWithPatternImage (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Un-mounting of first DMG is taking 15secs
  • Next by Date: Pin NSScrollView documentView to Upper Left AND Pin Scrolling to Upper left
  • Previous by thread: Re: Fixed pattern with colorWithPatternImage
  • Next by thread: Re: Fixed pattern with colorWithPatternImage
  • Index(es):
    • Date
    • Thread