On 21/06/2009, at 9:18 AM, Sumin Kim wrote:

Hi, Graham,

I think I finally got what you said. I referred your linked sample, and implemented my source as follows.(I enclose my source for anyone who has same problem with many thanks to this list.) I also needed to add some code to drawRect to draw my custom view correctly.

If you find any problem from my source, please let me know.



Well, this isn't what I meant.

You've created a view that fills your entire scrollview, just to draw some background colour in the corner. What I meant was to create a small view that is just the size of that small corner and use the - tile method to position it in the corner where you want it. This is what the sample code I pointed to is doing, albeit positioning a placard view in a different place.

Also, you are drawing the other's view's "content" in your scroll view. Instead, that view should be drawing its own content. This means you have to subclass NSView to make the corner view and implement its - drawRect method to draw whatever it is you want it to do.

None of these things are difficult. I'm afraid your solution is incorrect.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to