Re: Field editor in view-based table

2013-05-01 Thread Martin Hewitson
Kyle, 1) to get the field editor to show I have to single click the text field and wait about 1s. Do you have a double-click action specified for the table view? If so, NSTableView needs to wait to determine whether to send the click to the hit view. Nope. 2) The field editor only

Re: How to implement readonly property

2013-05-01 Thread Andreas Grosam
This is a somewhat older but quite interesting thread - nonetheless I felt the final conclusion was still too vague. So, I did my best to put up a simple worst case sample and tried to trick dispatch_once into a race. But I failed. That is, dispatch_once was doing what one would like to

View Based Table - where is my data?

2013-05-01 Thread Gerriet M. Denkmann
A NSTableView with one column which uses NSTableCellViews. Uses DataSource: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex { NSDictionary *aLine = self.dataArray[rowIndex]; NSTableCellView *cellView = [

Re: View Based Table - where is my data?

2013-05-01 Thread Seth Willits
On May 1, 2013, at 8:34 AM, Gerriet M. Denkmann wrote: A NSTableView with one column which uses NSTableCellViews. Uses DataSource: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex This method does not get used at

Re: View Based Table - where is my data?

2013-05-01 Thread Quincey Morris
On May 1, 2013, at 08:34 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex { NSDictionary *aLine = self.dataArray[rowIndex]; NSTableCellView *cellView = [

Re: View Based Table - where is my data?

2013-05-01 Thread Gerriet M. Denkmann
On 1 May 2013, at 23:51, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On May 1, 2013, at 08:34 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex {

Built-in Activity Types

2013-05-01 Thread koko
How does one specify which of the built-in Activity Types should be displayed in the UIActivityViewController? If I do this: NSArray *activityItems = [NSArray arrayWithObject:@STRING]; self.activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems

View Based TableView - how to use bindings?

2013-05-01 Thread Gerriet M. Denkmann
I have a view-based table view which currently uses a DataSource. But I would like to use bindings instead. I know how to do this with a cell-based table view - and I was following Populating View-Based Table Views using Cocoa Bindings. My array controller has arrangedObjects which seem to be

Re: Built-in Activity Types

2013-05-01 Thread koko
I should also note that I want to add my custom activities as well and understand I need to subclass UIActivity but some details would be helpful. On May 1, 2013, at 12:39 PM, koko k...@highrolls.net wrote: How does one specify which of the built-in Activity Types should be displayed in the

Close All Documents

2013-05-01 Thread Steve Mills
Since this is no longer handled by the OS (probably in lieu of the silly new quit when last doc is closed behavior), is there a better way to handle it than what I have below? -(void) documentController:(NSDocumentController*)documentController didReviewAll:(BOOL)didReviewAll

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Quincey Morris
On May 1, 2013, at 11:52 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: The Array Controller has it's content bound to some array of dictionaries, which have the keys Name and Image. The table view's content is bound to Array Controller arrangedObjects. The only TableColumn is not bound

[MEET] Toronto Cocoaheads / tacow - May 14

2013-05-01 Thread Karl Moskowski
tacow's next meeting is scheduled for 6:30 PM on Tuesday, May 14, 2013 in meeting room 310 of Metro Hall. Ryder Mackay will be discussing AVFoundation. For more details and to RSVP, head over to http://www.meetup.com/tacow-org/events/111222002/. In addition, we’d like to gauge how many plan to

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Gerriet M. Denkmann
On 2 May 2013, at 02:16, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On May 1, 2013, at 11:52 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: The Array Controller has it's content bound to some array of dictionaries, which have the keys Name and Image. The table view's

Re: Close All Documents

2013-05-01 Thread Seth Willits
On May 1, 2013, at 12:03 PM, Steve Mills wrote: Since this is no longer handled by the OS (probably in lieu of the silly new quit when last doc is closed behavior), is there a better way to handle it than what I have below? To be clear, are you suggesting that when quitting your app with

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Quincey Morris
On May 1, 2013, at 12:52 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Can't find the method: 'tableView:viewWithIdentifier…'. But makeViewWithIdentifier:... is never called. It was used in ...viewForTableColumn:... which was never called and has just been removed. I guess this is the

Re: Close All Documents

2013-05-01 Thread Steve Mills
On May 1, 2013, at 14:58:47, Seth Willits sli...@araelium.com wrote: To be clear, are you suggesting that when quitting your app with unsaved documents open it's not asking you to review unsaved docs and you want it to that and are therefore having to somewhat implement that yourself? No.

Double tap inside a UICollectionViewCell

2013-05-01 Thread koko
The code below from Collection View Programming Guide for iOS: Incorporating Gesture Support does not work as expected. Is there something Apple has left out? Does not work as expected means @selector(handleTapGesture:)is not called if a double tap occurs in a UICollectionViewCell.

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Gerriet M. Denkmann
On 2 May 2013, at 03:16, Quincey Morris quinceymor...@rivergatesoftware.com wrote: I got it working. Formerly I had: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { self.dataArray = [ NSMutableArray array ]; // this is the content of my ArrayController