Repeating NSView subclass with controls in a scroller
Repeating NSView subclass with controls in a scroller
- Subject: Repeating NSView subclass with controls in a scroller
- From: "Guy Umbright" <email@hidden>
- Date: Mon, 17 Mar 2003 10:22:36 -0600
- Thread-topic: Repeating NSView subclass with controls in a scroller
Here is what I am shooting for (thing something like the Quicken check
register):
+-------------------------------+-+
| Text text box with a |^|
| block of text | |
| Button | |
|-------------------------------| |
| Text text box with a | |
| block of text | |
| Button | |
|-------------------------------| |
| Text text box with a | |
| block of text | |
| Button |v|
+-------------------------------+-+
I thought that it would be simplest initially to just use a custom view as a
container (within an NSScroller) add my entry views as subviews, manage the
frames and stuff.
I created an NSView subclass in IB (EntryView) and laid out the controls like
I wanted and instantiated it. I added an outlet for the app controller so it
could get to the entry view then I generated files, added some code in the app
to copy the entry view and add it as a subview to my container. Everything
seems fine except nothing draws.
Obviously I am doing something wrong, but I can only find example NSView
subclasses that just draw themselves, not any that have an NSView with other
controls.
Have I take a completely wrong tack on how to do this? Ideas for what to do
if not?
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
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.