Sorting a view based TableView with bindings

2013-05-02 Thread Gerriet M. Denkmann
I have a cell-based TableView which is filled via ArrayController using bindings. Sorting just works. Now I changed this to a view-based TableView and suddenly no more automatic sorting. It has just one column which uses an NSTableCellView. The Static Text has it's Value bound to Table Cell Vie

Re: Sorting a view based TableView with bindings

2013-05-02 Thread Quincey Morris
On May 2, 2013, at 00:31 , "Gerriet M. Denkmann" wrote: > When I click on the header nothing happens (except the current selection is > set to none and the small triangle on the right side alternate between up and > down). At a wild guess, I'd suspect you neglected to bind the table's Sort Des

Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Motti Shneor
Hello. I have two NSObject subclasses - say MyA and MyB. - Each MyA instance. creates and owns a MyB instance. - MyB instances create an NSThread, and live their asynchronous life, communicating with a remote internet server, and sometimes with their owner (the MyA object) who lives in the

Re: Sorting a view based TableView with bindings

2013-05-02 Thread Gerriet M. Denkmann
On 2 May 2013, at 14:49, Quincey Morris wrote: > On May 2, 2013, at 00:31 , "Gerriet M. Denkmann" wrote: > >> When I click on the header nothing happens (except the current selection is >> set to none and the small triangle on the right side alternate between up >> and down). > > At a wild

UIGestureRecognizers for 2-6?

2013-05-02 Thread Eric E. Dolecki
Hi all, I am looking for subclassed UIGestureRecogizers for numerals 2, 3, 4, 5, 6. I am simply looking to save some time by plugging in these recognizers if any has any laying around or knows where I can get some (without doing the JSON thing). Thanks for any consideration, Eric

Re: Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Fritz Anderson
On 1 May 2013, at 7:10 AM, Motti Shneor wrote: > - Each MyA instance. creates and owns a MyB instance. > - MyB instances create an NSThread, and live their asynchronous life, > communicating with a remote internet server, and sometimes with their owner > (the MyA object) who lives in the main

Re: NSWindow - flickering shadow during height animation (borderless, transparent)

2013-05-02 Thread Robert Vojta
Okay, so, here's the solution … The problem was in this … Wrong way I was listening for contentView frame changes (NSViewDidChangeFrameNotification) and I was calling display/invalidateShadow whenever I receieved this notification. Correct way NSWindowDelegate has windowDidResize notification

Re: Built-in Activity Types

2013-05-02 Thread Matt Neuburg
On Wed, 01 May 2013 12:59:48 -0600, koko said: >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. Same answer: http://www.apeth.com/iOSBook/ch26.html#_activity_view m. -- matt neuburg, phd = m...

Re: Double tap inside a UICollectionViewCell

2013-05-02 Thread Matt Neuburg
On Wed, 01 May 2013 18:23:10 -0600, koko said: >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 >do

Re: Double tap inside a UICollectionViewCell

2013-05-02 Thread koko
On May 2, 2013, at 10:35 AM, Matt Neuburg wrote: > Well obviously if you want to detect double taps on a collection view *cell*, > it might be simplest to attach the gesture recognizer to the collection view > *cell* (not the collection view itself). m. From the UICollectionView Programming G

Re: Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Jens Alfke
On May 1, 2013, at 5:10 AM, Motti Shneor wrote: > Currently, MyB retains itself within its thread, and releases itself just > before the thread exits. I know it is bad practice (self retaining objects), > but I did not yet think of a better way. > > This way, when the owner releases its MyB

Re: Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Kyle Sluder
On Wed, May 1, 2013, at 05:10 AM, Motti Shneor wrote: > Hello. > > I have two NSObject subclasses - say MyA and MyB. > > - Each MyA instance. creates and owns a MyB instance. > - MyB instances create an NSThread, and live their asynchronous life, > communicating with a remote internet server,

Re: Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Motti Shneor
Hi and thanks Kyle, Fritz, Jens and everyone else On 2 במאי 2013, at 20:31, Kyle Sluder wrote: > On Wed, May 1, 2013, at 05:10 AM, Motti Shneor wrote: >> Hello. >> >> I have two NSObject subclasses - say MyA and MyB. >> >> - Each MyA instance. creates and owns a MyB instance. >> - MyB

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On Apr 17, 2013, at 2:09 PM, Quincey Morris wrote: > On Apr 17, 2013, at 10:50 , Gordon Apple wrote: > >> We are converting tables and outlines to view-based. So far, so good, on >> tables. But NSOutlineView has been a pain. First of all, there is no >> documentation on this, zero, zip, na

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On Apr 21, 2013, at 11:51 AM, Gordon Apple wrote: > Our view-based NSOutlineView still has a few annomalies, but mostly works. > Now, we are attempting to install a hoverView in our outline column to > launch a popover (display only) when mousing over a row. This works just > fine with NSTableV

Re: Field editor in view-based table

2013-05-02 Thread Corbin Dunn
On Apr 12, 2013, at 10:58 PM, Martin Hewitson wrote: > Dear list members, > > I have an NSTextField in a row view of a view-based tableview and I see the > following behavior: > > 1) to get the field editor to show I have to single click the text field and > wait about 1s. > 2) The field

Re: NSOutlineView Travails

2013-05-02 Thread Quincey Morris
On May 2, 2013, at 14:52 , Corbin Dunn wrote: > On Apr 17, 2013, at 2:09 PM, Quincey Morris > wrote: > >> On Apr 17, 2013, at 10:50 , Gordon Apple wrote: >> >>> We are converting tables and outlines to view-based. So far, so good, on >>> tables. But NSOutlineView has been a pain. First of

Re: NSOutlineView Travails

2013-05-02 Thread Gordon Apple
We did get a customRowView to work in the TableViewPlayground sample. The popover showed a simple color image view with some text that displayed the row number. As you mouse over the outline, any previous popover closes and a new one appears at the edge of the outline/table view row. I filed a r

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On May 2, 2013, at 3:15 PM, Quincey Morris wrote: > On May 2, 2013, at 14:52 , Corbin Dunn wrote: > >> On Apr 17, 2013, at 2:09 PM, Quincey Morris >> wrote: >> >>> On Apr 17, 2013, at 10:50 , Gordon Apple wrote: >>> We are converting tables and outlines to view-based. So far, so go

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On May 2, 2013, at 3:44 PM, Gordon Apple wrote: > We did get a customRowView to work in the TableViewPlayground sample. The > popover showed a simple color image view with some text that displayed the > row number. As you mouse over the outline, any previous popover closes and a > new one a

delaying forced sleep after initial 30 seconds delay

2013-05-02 Thread Nick Rogers
Hi, I want my app to delay forced sleep even after requesting the initial delay of 30 seconds. This have to be specifically set by the user in the Preferences of the app and only when the user clicks a button to run some operation, for the duration of that operation which could extent to a min

Re: delaying forced sleep after initial 30 seconds delay

2013-05-02 Thread Quincey Morris
On May 2, 2013, at 21:16 , Nick Rogers wrote: > I want my app to delay forced sleep even after requesting the initial delay > of 30 seconds. > This have to be specifically set by the user in the Preferences of the app > and only when the user clicks a button to run some operation, for the > d

Re: delaying forced sleep after initial 30 seconds delay

2013-05-02 Thread Kyle Sluder
On Thu, May 2, 2013, at 09:16 PM, Nick Rogers wrote: > Hi, > > I want my app to delay forced sleep even after requesting the initial > delay of 30 seconds. Forced sleep exists for cases in which keeping the machine awake can cause hardware failure. > > I have seen my macbook pro sometime taking

Enable Unique Selection

2013-05-02 Thread Gerriet M. Denkmann
I have a button which only makes sense when exactly one thing is selected. Currently it's Enabled property is bound to Array Controller.selectedObjects.@count. I.e. the button is enabled if one or more things are selected. But I want it to be disabled when nothing is selected AND also if more tha