On Nov 28, 2012, at 18:53 , Graham Cox wrote:
> But suppose the two index sets are "absolute" in that there is not yet any
> adjustment to either of them. Then the indexes they refer to are absolutely
> referring to the table rows - there is a 1:1 correspondence between the order
> of indexes
On 29/11/2012, at 1:18 PM, Quincey Morris
wrote:
> If I understand you correctly, then it can't be done without an extra
> parameter. The "coordinate system" of the indexes in *both* index sets is
> that of the original list. When you're undoing, all of the indexes in both
> index sets are "
On Nov 28, 2012, at 17:24 , Graham Cox wrote:
> Ideally I'd like the following method signature:
>
> - (void) moveStuffFrom:(NSIndexSet*) source to:(NSIndexSet*) destination;
>
> which internally calls [ [undoManager prepare...] moveStuffFrom:destination
> to:source]; to set up undo.
>
> this
On Nov 28, 2012, at 7:39 PM, Greg Parker wrote:
> On Nov 28, 2012, at 5:28 PM, Charles Srstka wrote:
>> Perhaps, although I'm somewhat unsure of what VC is for, if not for making
>> it possible to compare and revert changes that might possibly have ill
>> effects.
>
> Version control is also
On Nov 28, 2012, at 5:28 PM, Charles Srstka wrote:
> Perhaps, although I'm somewhat unsure of what VC is for, if not for making it
> possible to compare and revert changes that might possibly have ill effects.
Version control is also intended to communicate and coordinate with other
developers.
On Nov 28, 2012, at 6:57 PM, Kyle Sluder wrote:
> On Nov 28, 2012, at 4:46 PM, Charles Srstka wrote:
>
>> On Nov 28, 2012, at 5:38 PM, Quincey Morris
>> wrote:
>>
>>> On Nov 28, 2012, at 15:21 , Charles Srstka wrote:
>>>
... yes?
>>>
>>> That's pretty impressive, though perhaps it's
On 29/11/2012, at 12:02 PM, Quincey Morris
wrote:
> That means you'd need a different though similar twelve lines of code to
> implement the reverse algorithm. That in turn means you'd need to know which
> direction you were going, so there might need to be a 3rd "direction"
> parameter (or
On Nov 28, 2012, at 16:35 , Graham Cox wrote:
> So the question now is, can the table reordering with animation be made to
> work in the undo case?
I think it's doable. Note that the existing code is simple because there's no
need to adjust the indexes in the selectionIndexes set at each step
On Nov 28, 2012, at 4:46 PM, Charles Srstka wrote:
> On Nov 28, 2012, at 5:38 PM, Quincey Morris
> wrote:
>
>> On Nov 28, 2012, at 15:21 , Charles Srstka wrote:
>>
>>> ... yes?
>>
>> That's pretty impressive, though perhaps it's more indicative of mental
>> mastery over self than technical
On Nov 28, 2012, at 5:38 PM, Quincey Morris
wrote:
> On Nov 28, 2012, at 15:21 , Charles Srstka wrote:
>
>> ... yes?
>
> That's pretty impressive, though perhaps it's more indicative of mental
> mastery over self than technical mastery over git?
Impressive? All you have to do is hit Command
On 29/11/2012, at 8:35 AM, Quincey Morris
wrote:
> On Nov 28, 2012, at 13:02 , Quincey Morris
> wrote:
>
>> I think the loop algorithm needs to look like this:
>>
>> C1. Loop over the "less than" set starting from its highest index and
>> working down. At each iteration, move the row at th
On Nov 28, 2012, at 15:55 , Marco S Hyman wrote:
> Written by someone who doe not appreciate the benefits of git staging and the
> index. I will stage changes in a tree (git add) that may not be quite ready
> for a commit before doing something that I may not like and want to undo. If
> I li
On Nov 28, 2012, at 6:02 PM, Charles Srstka wrote:
> On Nov 28, 2012, at 4:58 PM, Roland King wrote:
>
>> Mostly an easy automated crutch for people who find git and svn a bit too
>> technical.
>
> But this is a *developer tool*! By its very nature, it has to be technical.
>
> Charles
No ne
On Nov 28, 2012, at 3:08 PM, Quincey Morris
wrote:
>> Mostly an easy automated crutch for people who find git and svn a bit too
>> technical.
>
> Oh, come on! If you're prepared to commit your changes before *every* global
> search/replace and *every* refactor then snapshot is similar to a co
On Nov 28, 2012, at 15:21 , Charles Srstka wrote:
> ... yes?
That's pretty impressive, though perhaps it's more indicative of mental mastery
over self than technical mastery over git?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
On Nov 28, 2012, at 5:08 PM, Quincey Morris
wrote:
> Do you commit before every replace and every refactor?
... yes?
Charles
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
On Nov 28, 2012, at 14:58 , Roland King wrote:
> On 29 Nov, 2012, at 6:45 AM, Charles Srstka wrote:
>
>> I must confess that I've never really understood the purpose of Snapshot.
>> What does it provide that git and svn don't already?
>
> Mostly an easy automated crutch for people who find gi
On Nov 28, 2012, at 4:58 PM, Roland King wrote:
> Mostly an easy automated crutch for people who find git and svn a bit too
> technical.
But this is a *developer tool*! By its very nature, it has to be technical.
Charles
___
Cocoa-dev mailing list
On 29 Nov, 2012, at 6:45 AM, Charles Srstka wrote:
> On Nov 28, 2012, at 4:24 PM, Yi Lin wrote:
>
>> I have tried using Snapshot as a way to undo my project to a previous
>> state, sort of like a powered-up version of undo, but it never works for
>> me. When I attempt to restore to a previous
On Nov 28, 2012, at 4:24 PM, Yi Lin wrote:
> I have tried using Snapshot as a way to undo my project to a previous
> state, sort of like a powered-up version of undo, but it never works for
> me. When I attempt to restore to a previous snapshot, even after minor
> change, Xcode just crash. I am u
I have tried using Snapshot as a way to undo my project to a previous
state, sort of like a powered-up version of undo, but it never works for
me. When I attempt to restore to a previous snapshot, even after minor
change, Xcode just crash. I am using the latest Xcode, and have tried this
on at leas
On Nov 28, 2012, at 13:02 , Quincey Morris
wrote:
> I think the loop algorithm needs to look like this:
>
> C1. Loop over the "less than" set starting from its highest index and working
> down. At each iteration, move the row at the current index to 'targetIndex -
> 1'. (But don't decrement t
On Nov 28, 2012, at 02:17 , Graham Cox wrote:
> That's my mental picture of the first part, but the outcome is incorrect, so
> either the algorithm or the implementation is wrong.
I got to wondering further about this, so I downloaded the TableViewPlayground
sample project. Lo and behold, its
On Nov 28, 2012, at 02:17 , Graham Cox wrote:
> But the target index is then off by one, so it needs to be adjusted by
> decrementing or the moved items will end up reversed.
Yes, you and Seth are quite right, the first set will get reordered without an
adjustment. So, the correct version of t
Yep. Cool, thanks.
On Nov 28, 2012, at 10:23 AM, Kyle Sluder wrote:
> On Wed, Nov 28, 2012, at 10:09 AM, Randy Widell wrote:
>> Ah, ok. So, just make the sheet another window in the same XIB and use
>> the same window controller. Makes sense.
>
> Or in a different nib. It really doesn't mat
On Nov 28, 2012, at 9:22 AM, Randy Widell wrote:
> What are the best practices concerning connecting documents and window
> controllers?
>
> I understand that when I pop up a window related to a document, I need to add
> the window controller to the document with addWindowController:.
>
> One
What are the best practices concerning connecting documents and window
controllers?
I understand that when I pop up a window related to a document, I need to add
the window controller to the document with addWindowController:.
One thing I am not clear on is how to handle a modal sheet in within
By the way, the pseudo code I wrote does work…
NSIndexSet * draggedIndexes = ...;
NSMutableArray * newThings = [[self.things mutableCopy] autorelease];
NSArray * draggedObjects = [self.things
objectsAtIndexes:draggedIndexes];
NSInteger numberOfRows = tableView.n
On Sun, 25 Nov 2012 21:38:25 +0800, Roland King said:
>I'm pretty sure that when I was watching the WWDC 2012 sessions, dispatch
>queues are now objects (since iOS6 and OS 10.7/10.8?) and as such I don't have
>to dispatch_retain() or release them and can just use them like any other
>object. Bu
On Nov 28, 2012, at 7:35 AM, Akhil Jindal wrote:
> I want to check whether the mouse event received was generated through
> an actual mouse, or through a touch(possibly on an external direct
> touch display attached to the machine(like the Wacom Cintiq)).
>
>
>
> I can receive the touch events
On Wed, 07 Nov 2012 22:14:08 +0100, Matthias Arndt
said:
>Hi Graham,
>
>I had the same issue today: As Andy mentioned the HTML validation is much
>stricter than in the past, e. g. all / / / tags have
>to be closed ... I just finished correcting all help files of one project,
>checked them
On Nov 28, 2012, at 8:08 AM, Matt Neuburg wrote:
>
> Gosh, I've only got 37 open radars. Clearly I am not spending my time
> uselessly enough! I need to file more bugs so that Apple can do nothing
> whatever about them. :)) (Do radars that they close off as duplicates count?
> I've got lots o
On Nov 26, 2012, at 6:30 PM, Kyle Sluder wrote:
> On Nov 26, 2012, at 6:04 PM, Matt Neuburg wrote:
>
>> PS Is there any merit to my suggestion that the runtime should warn if you
>> set the frame of a constrained interface object? I really think such a
>> warning would save a lot of programme
On Nov 27, 2012, at 10:35 PM, Quincey Morris wrote:
> C1. Loop over the "less than" set starting from its highest index and working
> down. At each iteration, move the row at the current index to the targetIndex
> row.
>
> ...
>
> Am I crazy or isn't it just that easy?
Well, you left some det
Hi,
I want to check whether the mouse event received was generated through
an actual mouse, or through a touch(possibly on an external direct
touch display attached to the machine(like the Wacom Cintiq)).
I can receive the touch events through the Wacom APIs and want to
ignore the mouse event
On 28/11/2012, at 5:35 PM, Quincey Morris
wrote:
> Am I crazy or isn't it just that easy? Note that there's no adjustment of
> indexes necessary, other than the increment of targetIndex in C2.
Thanks for thinking about this, Seth too.
I'm pretty sure there is a solution lurking in here some
36 matches
Mail list logo