Re: NSTableView: Rows from bottom up

2015-09-01 Thread Willeke
You can move the table view to the bottom of the scroll view in an override of -[NSScrollView tile]. Déjà vu http://cocoa-dev.apple.narkive.com/cwH1sLmk/nstableview-with-reversed-rows - Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: selectText of NSTextField on focus

2015-07-08 Thread Willeke
>NSRange range = NSMakeRange(0, editor.string.length); >[editor setSelectedRange:range]; > >[super mouseDown:event]; > } > > @end You're almost there, do [super mouseDown:event] first. - Willeke ___ Cocoa-dev maili

Re: selectText of NSTextField on focus

2015-07-07 Thread Willeke
ss and Search field calls setSelectedRange: of currentEditor in mouseDown: - Willeke ___ 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.ap

Re: Scripting Bridge Questions

2015-06-25 Thread Willeke
ngs and save as…. Willeke ___ 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 Subscript

Re: NSTableView with reversed rows?

2014-10-03 Thread Willeke
s at the top, above the top row, > instead of below the bottom table row. > > I hope I have expressed more clear what I 'm looking for. > -- > Luc Van Bogaert Override -[NSScrollView tile], call super and move the document view to

Re: How to Validate CoreData attribute value for uniqueness

2014-09-01 Thread Willeke
| [species count] == 1 && [species objectAtIndex:0] != self) { NSTextField can have a delegate which can implement - (BOOL)control:(NSControl *)control isValidObject:(id)object Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Converting database to Core Data

2014-07-12 Thread Willeke
Perhaps I don't see the problem but what is preventing you from creating the second inverse relationship? Op 10 jul 2014, om 22:00 heeft William Squires het volgende geschreven: > I'm trying to convert the following. I have two tables in a database, > "TransactionEntry", and "ReasonCode". A "

Re: Bindings setup with NSCollectionViews

2014-06-19 Thread Willeke
Bind the Selection Indexes of the master collection view to selectionIndexes of the BoardArrayController. I would bind the Contents of the detail collection view to arrangedObjects of the ListArrayController. Willeke Op 18 jun 2014, om 03:40 heeft Hajder Rabiee het volgende geschreven: >

Re: copy and mutableCopy

2014-04-29 Thread Willeke
Thanks a lot > Dave Maybe this is what you are looking for? http://disanji.net/iOS_Doc/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmImplementCopy.html Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: How to display NSStrokeColorAttributeName on the NSColorPanel

2014-02-04 Thread Willeke
You have to disconnect the NSColorPanel and the NSTextView. You can do this by switching off "Font Panel" of the NSTextView. - Willeke Op 3 feb 2014, om 20:45 heeft Leonardo het volgende geschreven: > Hi Willeke, > Yes, I click on the oForeColorWell, it gets activat

Re: Set up an editable view based NSTableView programmatically - how to?

2014-01-07 Thread Willeke
sed a view based table view and it looks too simple but maybe it helps. Willeke ___ 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)li

Re: NSPopUpButton binding value/selected problem

2013-10-21 Thread Willeke
to be independent of each other. > You could bind Selected Object of the popup button to something like a property of the windowcontroller. Or give the popup button its own arraycontroller. Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Core Data Initialization

2013-09-04 Thread Willeke
Op 2 sep 2013, om 13:01 heeft Dave het volgende geschreven: > Is this advisable? Yes, it's in the Core Data FAQ: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#//apple_ref/doc/uid/TP40001802-SW5 _

Re: NSPipe eating up all available pipes on system.

2013-02-22 Thread Willeke
I don't know why but it doesn't leak if you do readInBackgroundAndNotify only if [data length]!=0. - Willeke Op 20 feb 2013, om 23:56 heeft Mr. Gecko het volgende geschreven: > Looks like every pipe is leaking. I cannot see a way to prevent the leak > myself as I know the N

Re: filtering an array of entities using NSPredicate

2012-10-15 Thread Willeke
Op 15 okt 2012, om 02:05 heeft Koen van der Drift het volgende geschreven: > > On Oct 14, 2012, at 7:56 PM, Willeke wrote: > >> the predicate should be something like >> name IN {"Jones A.", "Williams S.", "Brown M.", "Tobias S."

Re: filtering an array of entities using NSPredicate

2012-10-14 Thread Willeke
ted to me. > the predicate should be something like name IN {"Jones A.", "Williams S.", "Brown M.", "Tobias S."} what is persons in this statement? [fetchRequest setPredicate: [NSPredicate predicateWithFormat: @"name IN %@", persons]]; Will

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-30 Thread Willeke
MIkkel, I'm sorry, I didn't see your answer yet when I sent my previous message. Willeke ___ 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

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-30 Thread Willeke
't be observed for key "value". What happens if you switch "Auto Rearrange Content" off? Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Willeke
Is "Auto Rearrange Content" of the array controller switched on? The array controller can't observe to-many relationships. Does NSPredicateEditor work with to-many relationships? I don't think so, but I'm not sure. ___ Cocoa-dev mailing list (Cocoa-de

Re: Binding NSTableView to NSSet

2012-07-15 Thread Willeke
ps://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TableView/SortingTableViews/SortingTableViews.html#//apple_ref/doc/uid/1026i-CH10-SW1. > Would that be a good approach? > > Other alternatives? Can't you just set the sortDescrip

Re: Sorting an NSTableView bound to an NSArrayController.

2012-06-29 Thread Willeke
compare method. In IB you set the selector of the table column to this method. Willeke ___ 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

Re: multi-window document best practices?

2012-05-13 Thread Willeke
logic and the model-related logic. If each NIB has its own owner, awakeFromNib is only called once. Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

How to create an expression?

2011-09-26 Thread Willeke
hi, How do I programmatically create the $x.firstname and .@count parts of this expression? SUBQUERY(residents, $x, $x.firstname == "Jane" && $x.lastname == "Doe").@count When I create a subquery predicate with predicateWithFormat:, the class of the $x.firstname and .@count expressions is NSKey