Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-04-12 Thread Colas
I keep the information of what needs to be saved in MyAssistanForSaving and when it is time to save (in my case I always save immediately when one attaches new files), I write in my file package with the help of NSFileManager in the -writeToURL... Method (I don't remember the précis name right n

resizing image returned from NSDraggingInfo -draggedImage

2014-04-12 Thread edward taffel
during inter-document drags of app objects, i’d like to resize the drag image to the mag (zoom) of an entered document. this was easily accomplished in carbon. when i ported from carbon [in 2011] i tried what i considered obvious, e.g. - (NSDragOperation)draggingEntered:(id < NSDraggingInfo >)se

Re: resizing image returned from NSDraggingInfo -draggedImage

2014-04-12 Thread Kyle Sluder
On Apr 12, 2014, at 11:02 AM, edward taffel wrote: > > during inter-document drags of app objects, i’d like to resize the drag image > to the mag (zoom) of an entered document. > this was easily accomplished in carbon. when i ported from carbon [in 2011] i > tried what i considered obvious, e.g

NSArrayController arrangedObjects KVO

2014-04-12 Thread Richard Charles
It is well known in some circles that NSArrayController does not correctly populate the KVO change dictionary. If you manually observe an array controller’s arranged objects key path with the old and new observation options, the change dictionary you will get when an object is inserted will loo

Re: NSArrayController arrangedObjects KVO

2014-04-12 Thread Mike Abdullah
On 12 Apr 2014, at 21:37, Richard Charles wrote: > It is well known in some circles that NSArrayController does not correctly > populate the KVO change dictionary. > > If you manually observe an array controller’s arranged objects key path with > the old and new observation options, the chang

Re: NSArrayController arrangedObjects KVO

2014-04-12 Thread Richard Charles
On Apr 12, 2014, at 3:18 PM, Mike Abdullah wrote: > You could override -rearrangeObjects to post such a notification perhaps. Overriding -rearrangeObjects did not work but overriding -arrangeObjects: did. You are a genius. Thanks for taking the time to look at this on a Saturday afternoon. --

Re: resizing image returned from NSDraggingInfo -draggedImage

2014-04-12 Thread edward taffel
thanks for your reply kyle. you are absolutely correct: dts did provide a workaround w/ enumerateDraggingItemsWithOptions. On Apr 12, 2014, at 3:51 PM, Kyle Sluder wrote: > On Apr 12, 2014, at 11:02 AM, edward taffel wrote: >> >> during inter-document drags of app objects, i’d like to resiz