Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-10-02 Thread Gilles Celli
I finally found the bug which caused my NSOutlineView to display the content only if the user was scrolling inside of it, but never showed up correctly at program launch: The problem was that I've put the method expandItem:exandChildren inside NSOutlineView delegate method outlineView:willDisp

Re: combining two entities to one binding

2011-10-02 Thread Koen van der Drift
On Oct 1, 2011, at 3:09 PM, Keary Suska wrote: > Not specifically for NSTextView. Text fields have the "value with pattern" > bindings, but no such luck for text views. In such cases I generally have a > "dynamic" property of a model object that consists of a pseudo-getter and > +keyPathsForVa

Re: combining two entities to one binding

2011-10-02 Thread Keary Suska
On Oct 2, 2011, at 6:05 AM, Koen van der Drift wrote: > On Oct 1, 2011, at 3:09 PM, Keary Suska wrote: > >> Not specifically for NSTextView. Text fields have the "value with pattern" >> bindings, but no such luck for text views. In such cases I generally have a >> "dynamic" property of a model

Re: combining two entities to one binding

2011-10-02 Thread Gerd Knops
On Oct 2, 2011, at 9:11 AM, Keary Suska wrote: > On Oct 2, 2011, at 6:05 AM, Koen van der Drift wrote: > >> >> It actually is a label, so I can use the value with pattern bindings, thanks >> for pointing that out. >> >> Any idea how to get a hard return between the two values? >> >> %{value1

Re: combining two entities to one binding

2011-10-02 Thread Koen van der Drift
On Oct 2, 2011, at 10:11 AM, Keary Suska wrote: > Unfortunately not in the binding text itself, at least AFAIK. There are a > number of ways to do this, the most obvious being adding a method to your > model class such as: > > - (NSString *)hardReturn > { > return @"\n"; > } > > and add

CoreData Relationships and Array Controllers

2011-10-02 Thread Amy Gibbs
Hi, I've got a CoreData application that has a number of related entities. I'd like to select 1 instance of 1 entity, and be able to display in a table the resulting array of a number of relationships. I'm having trouble trying to make it make sense in words so please bear with me. The se

Re: CoreData Relationships and Array Controllers

2011-10-02 Thread Quincey Morris
On Oct 2, 2011, at 10:37 , Amy Gibbs wrote: > so I tried to bind the table column to the customerBookcase array controller, > arranged objects, orderItemProduct.productTitle (orderItemProduct is the > relationship between CustomerOrderItems and Product) Yeah, that obviously can't work, because

NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-02 Thread Gilles Celli
Hi, I've setup an NSOutlineView which displays items of a data acquisiton system this way +-LocationName +--InstrumentNameA +DataTypeNameA1 +DataTypeNameA2 +DataTypeNameA3 + +--InstrumentNameB +DataTypeNameB1

Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-02 Thread Quincey Morris
On Oct 2, 2011, at 13:14 , Gilles Celli wrote: > Now I want to have a NSButtonCell for all the DataTypeNames (leaf node of the > OvItem items class)…I've setup an NSOutlineView with 2 columns: first column > named > "buttonColumn" and a second one to display the Items… > > I've tried to generat

Mystery of the missing symbol

2011-10-02 Thread Graham Cox
A user is reporting this error logged to the console when trying to load a plug-in bundle (an iTunes visualizer): dlopen(): Symbol not found: __NSConcreteStackBlock Referenced from: Expected in: /usr/lib/libSystem.B.dylib The plug-in is built against the 10.7 SDK with a minimum deployment t

Re: Mystery of the missing symbol

2011-10-02 Thread Stephen J. Butler
On Sun, Oct 2, 2011 at 7:50 PM, Graham Cox wrote: > A user is reporting this error logged to the console when trying to load a > plug-in bundle (an iTunes visualizer): > > dlopen(): Symbol not found: __NSConcreteStackBlock >  Referenced from: >  Expected in: /usr/lib/libSystem.B.dylib > > > The p

Re: Mystery of the missing symbol

2011-10-02 Thread Graham Cox
I'm not sure, I'll find out… but it's likely, as the plug-in is a universal binary. I'll see if getting him to run iTunes in 32-bit mode fixes the issue. --Graham On 03/10/2011, at 11:56 AM, Stephen J. Butler wrote: > s this user running the app as 64bit? I seem to remember that 64bit > Cocoa

Re: Mystery of the missing symbol

2011-10-02 Thread Quincey Morris
On Oct 2, 2011, at 17:50 , Graham Cox wrote: > A user is reporting this error logged to the console when trying to load a > plug-in bundle (an iTunes visualizer): > > dlopen(): Symbol not found: __NSConcreteStackBlock > Referenced from: > Expected in: /usr/lib/libSystem.B.dylib > > > The plu

Re: Mystery of the missing symbol

2011-10-02 Thread Graham Cox
On 03/10/2011, at 12:28 PM, Quincey Morris wrote: > Well, I just googled "__NSConcreteStackBlock", and it's clearly related to > Blocks. For example, the search found this: > > http://lists.apple.com/archives/xcode-users/2009/Oct/msg00608.html > > which I read as implying that using the

Re: Mystery of the missing symbol

2011-10-02 Thread Ken Thomases
On Oct 2, 2011, at 7:50 PM, Graham Cox wrote: > With a deployment target of 10.5, shouldn't the linker or compiler complain > at some point? No, that's not something that the deployment target affects. The whole point of specifying one version via the SDK but an earlier version via deployment

[SOLVED] Re: Mystery of the missing symbol

2011-10-02 Thread Graham Cox
On 03/10/2011, at 12:52 PM, Ken Thomases wrote: > On Oct 2, 2011, at 7:50 PM, Graham Cox wrote: > >> With a deployment target of 10.5, shouldn't the linker or compiler complain >> at some point? > > No, that's not something that the deployment target affects. The whole point > of specifying

Re: [SOLVED] Re: Mystery of the missing symbol

2011-10-02 Thread Don Quixote de la Mancha
>> No, that's not something that the deployment target affects.  The whole >> point of specifying one version via the SDK but an earlier version via >> deployment target is that you can use the features of the later version >> corresponding to the SDK _if you detect at runtime that they're actua