Re: Getting NSScrollView to ignore scrolling

2011-02-20 Thread Andrew Shamel
Hurrah! It was as easy as this: - (void)scrollWheel:(NSEvent *)theEvent { [[self nextResponder] scrollWheel:theEvent]; } Thanks, y'all! — andy On Feb 19, 2011, at 4:48 PM, Quincey Morris wrote: > On Feb 19, 2011, at 16:25, Peter Lübke wrote: > >>> My question is this: how do I get t

Getting NSScrollView to ignore scrolling

2011-02-19 Thread Andrew Shamel
HI All, I have a NSTableView/NSScrollView setup that I've configured automatically to resize to contain the content of the table. This may sound silly, but I don't want scrolling behavior, but NSTableView seems to be designed to be inside a NSScrollView. My question is this: how do I get th

Re: Selection in NSCollectionView

2010-11-02 Thread Andrew Shamel
Hi there great and wise Cocoa-Dev! I am wondering if anyone knows if there has been any movement regarding how selection is handled in NSCollectionViews. I see there was some conversation on this subject a couple of years back (http://www.cocoabuilder.com/archive/cocoa/217489-selection-in-nsco

NSTokenField: binding + disappearing tokens

2010-02-12 Thread Andrew Shamel
Hi there! I am having a bizarre problem with NSTokenField. In Interface Builder, having bound the field's "value" binding to an NSArrayController containing NSManagedObjects, and passing the value through a ValueTransformer, the field's tokens show up, displaying the proper values. However, w

Re: NSOutlineView + selectionIndexPaths binding

2010-01-20 Thread Andrew Shamel
Thanks for your help! I am indeed working with Snow Leopard. Here are my bindings & configuration: — NSTreeController, IB Name "Collections" Mode: Entity Entity Name: Collection Children Key Path: children [a relationship on the Collection managed object] Prepares Content: YES Editable: YES Fet

NSOutlineView + selectionIndexPaths binding

2010-01-20 Thread Andrew Shamel
Hi All, I've dug around in the archives and found several threads addressing this question, but the solutions don't seem to work. NB: all binding was done in Interface Builder I have an NSOutlineView with its only column bound at treeController.arrangedObjects.name to an NSTreeController that

NSTextView, Bindings, and Display Updates

2009-11-19 Thread Andrew Shamel
Hi All, I'm having a strange behavior with an NSTextView bound through Interface Builder to a Core Data backing. The textView is part of a standard master-detail setup, and is not updating its value when the selection is changed in the master list. The value only displays after the mouse has

NSComboboxCell + setButtonBordered:

2009-09-04 Thread Andrew Shamel
Hi all, I am having trouble with NSComboBoxCell's setButtonBordered: setting, having just updated to the latest XCode+IB versions in Snow Leopard. It appears that my choices are now between a bordered button with one arrow (setButtonBordered:YES) or a bordered button with two arrows (set

Re: Expanding NSScrollView

2009-07-26 Thread Andrew Shamel
Thanks so much for your help! I got this to work beautifully, the only problem is that I can't now get the scrollview (or its enclosing view, etc.) to shrink back when the text/rows get shorter, since the frame of the documentView does not seem to get smaller as the text recedes (I haven't

Re: Expanding NSScrollView

2009-07-21 Thread Andrew Shamel
so as to control when and how it grows and/or applies scrolling behavior. Whew! I hope that's clearer. Thanks again for your help. — a On 21 Jul 2009, at 12:12 PM, Quincey Morris wrote: On Jul 21, 2009, at 11:55, Andrew Shamel wrote: I'm trying to figure out how to create an

Expanding NSScrollView

2009-07-21 Thread Andrew Shamel
Hi All, I've dug around through the archives, but couldn't turn anything up that addresses this question, so I turn to the collective wisdom of the list. I'm trying to figure out how to create an NSScrollView subclass that expands vertically rather than scrolling, up to a certain height.

Re: ImageAndTextCell rendering weirdness

2009-01-21 Thread Andrew Shamel
versions, if you're not already. Depending on which version you have, the setSize may be being done for you. Or not. Sandy On Jan 17, 2009, at 8:26 PM, Andrew Shamel wrote: Greetings Cocoa-Dev! I am having the hardest time with a persistent and strange error with Apple's ImageA

Re: ImageAndTextCell rendering weirdness

2009-01-17 Thread Andrew Shamel
Thanks, Sandy. I found a later version (in the Source View example code), and alas, even with the size set, the same thing is happening. I confess that I don't know as much about view/cell drawing as I might. Has anyone seen this kind of rendering before, if not in this situation? Thank

ImageAndTextCell rendering weirdness

2009-01-17 Thread Andrew Shamel
Greetings Cocoa-Dev! I am having the hardest time with a persistent and strange error with Apple's ImageAndTextCell in my NSOutlineView. I have the ImageAndTextCell set to be the outline's data cell via NSTableColumn's -setDataCell: method, and I set the image of the cell in the outlineVi

ImageAndTextCell + NSOutlineView editing problem

2009-01-14 Thread Andrew Shamel
Greetings Cocoa-Dev! I am having the hardest time with a persistent and strange error with Apple's ImageAndTextCell in my NSOutlineView. I have the ImageAndTextCell set to be the outline's data cell via NSTableColumn's -setDataCell: method, and I set the image of the cell in the outlineVi

Re: NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
Ahh, brilliant!! It worked a treat. Thanks so much! Try delaying your call to expandItem: in your awakeFromNib. - (void)expandAllItems { [outline expandItem:nil expandChildren:YES]; } - (void)awakeFromNib { /* snip */ [self performSelector:@selector(expandAllItems) withOb

NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
I've trolled through the archives looking for help on this, but I can't seem to find anything that quite works. I'm trying to set it up such that an NSOutlineView starts out fully expanded. In the delegate, I have the following code: - (void)awakeFromNib { [outline expandItem:nil