Re: Views in CDBA's
Re: Views in CDBA's
- Subject: Re: Views in CDBA's
- From: David Blanton <email@hidden>
- Date: Mon, 27 Jul 2009 09:43:24 -0600
3. Set the document view of the scroll view to this view.
This is why I was confused about "store Im this nib" above. When you
drag a scroll view in from the Library, it has a custom view inside
of it, set up as the scroll view's document view. You can use the
Identity inspector to change it's class to that which you created in
step 1.
I was thinking I had to set the view programatically. Now I get it.
I want to thank everyone who offered suggestions, answers and wisdom.
This will be a Mac App (no pun intended) !
I know I'll be back but for now ... Ciao!
db
On Jul 27, 2009, at 12:47 AM, Kyle Sluder wrote:
On Jul 26, 2009, at 10:44 PM, David Blanton <email@hidden>
wrote:
I dragged a Scroll View from the LIbrary Objects Tab to the Window
defined in MyDocument.xib.
All of my content to be displayed here will be bit maps.
Well that's a bit of a tautology considering it's all going to be
rendered into the window's backing store, which is a bitmap.
So .. do I
I'm assuming you're describing a procedure here, not laying out a
set of options? That's how I'm interpreting it.
1. make a view, store in this nib.
"Make a view" is a bit vague. Again assuming, this time that you're
referring to "subclass NSView." In that case yes, but I don't know
what "store in this nib" means.
2. Render my bit map to this view.
Yes. Typically this will happen in -drawRect:. You will probably be
drawing NSBitmapImageReps here.
3. Set the document view of the scroll view to this view.
This is why I was confused about "store Im this nib" above. When you
drag a scroll view in from the Library, it has a custom view inside
of it, set up as the scroll view's document view. You can use the
Identity inspector to change it's class to that which you created in
step 1.
--Kyle Sluder
_______________________________________________
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