Closed GoogleCodeExporter closed 9 years ago
The problem here seems to be that Sequel Pro uses the remove: method of the
NSArrayController (Favorites) which will just remove the favorite from the
array, but
keep the Keychain Item.
The removeFavorite: method from MainController provides a solution that just
has to
be adapted to the ArrayController.
Original comment by schlabbe...@gmail.com
on 25 Nov 2008 at 2:24
Original comment by stuart02
on 28 Nov 2008 at 1:07
Original comment by stuart02
on 30 Nov 2008 at 2:14
schlabberdog is right, the favorite is simply being removed from the array
controller and the Keychain password
being left behind. I am currently working on resolving some other Keychain
issues and will also address this
issue. I think the simplest solution for just now (which I have already
implemented) is to make the remove
favorite button on the connection sheet call a removeFavorite: method on the
TableDocument instance, which
first removes the Keychain password and then calls the remove: method of the
array controller. I'll be committing the code later on today.
Original comment by stuart02
on 2 Dec 2008 at 5:31
A related idea I was going to suggest (and may have, but i can't find it
anymore) is
to treat connections as documents, rather than instances in a plist. If the
connection info were stored in SQLP documents, then they can be shared and
source-controlled. Additional information, such as the fav-query list could
also
live in these documents, giving the ability to have favorite queries be
database-specific. And finally, opening the document immediately gets you
connected
and working on your database, since it would likely remember your last state.
And
being docs, it means you can connect to your databases via Quicksilver.
I probably should have created a bug for this, and you guys could prioritize it
as such.
Original comment by mainstre...@gmail.com
on 2 Dec 2008 at 5:37
mainstreetmark, feel free to create an enhancement request for this as it
definitely sounds like something we
should be looking into, to increase compatibility with other applications.
Thanks
Original comment by stuart02
on 2 Dec 2008 at 5:41
This issue is resolved as of r214 as per my solution outlined in my previous
comment.
Original comment by stuart02
on 2 Dec 2008 at 6:13
Original issue reported on code.google.com by
mainstre...@gmail.com
on 24 Nov 2008 at 10:24