Re: View Based TableView - how to use bindings?

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

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. @selector(

Re: Close All Documents

2013-05-01 Thread Steve Mills
On May 1, 2013, at 14:58:47, Seth Willits 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. > Quitting with u

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Quincey Morris
On May 1, 2013, at 12:52 , "Gerriet M. Denkmann" 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 root of the prob

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 wit

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Gerriet M. Denkmann
On 2 May 2013, at 02:16, Quincey Morris wrote: > On May 1, 2013, at 11:52 , "Gerriet M. Denkmann" 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 arrange

[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 . In addition, we’d like to gauge how many plan t

Re: View Based TableView - how to use bindings?

2013-05-01 Thread Quincey Morris
On May 1, 2013, at 11:52 , "Gerriet M. Denkmann" 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 to anything

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 contextInfo:(voi

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 wrote: > How does one specify which of the built-in Activity Types should be displayed > in the UIActivityViewCo

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

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 ap

Re: View Based Table - where is my data?

2013-05-01 Thread Gerriet M. Denkmann
On 1 May 2013, at 23:51, Quincey Morris wrote: > On May 1, 2013, at 08:34 , "Gerriet M. Denkmann" wrote: > >> - (id)tableView:(NSTableView *)aTableView >> objectValueForTableColumn:(NSTableColumn *)aTableColumn >> row:(NSInteger)rowIndex >> { >> NSDictionary *aLine = self.dataArray[row

Re: View Based Table - where is my data?

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

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 a

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 = [ aTa

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 expe