Revision: 6948
http://skim-app.svn.sourceforge.net/skim-app/?rev=6948&view=rev
Author: hofman
Date: 2010-12-08 12:51:54 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
also default to session bookmark when no type and no name is passed to crate a
scripting bookmark
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-12-08 12:23:09 UTC (rev 6947)
+++ trunk/SKBookmark.m 2010-12-08 12:51:54 UTC (rev 6948)
@@ -570,14 +570,12 @@
NSString *aLabel = [properties objectForKey:@"label"];
FourCharCode type = [[properties
objectForKey:@"scriptingBookmarkType"] unsignedIntValue];
if (type == 0) {
- if (aURL) {
- if ([[NSWorkspace sharedWorkspace] type:[[NSWorkspace
sharedWorkspace] typeOfFile:aPath error:NULL] conformsToType:(NSString
*)kUTTypeFolder])
- type = SKScriptingBookmarkTypeFolder;
- else
- type = SKScriptingBookmarkTypeBookmark;
- } else if (aLabel) {
+ if (aURL == nil)
type = SKScriptingBookmarkTypeSession;
- }
+ else if ([[NSWorkspace sharedWorkspace] type:[[NSWorkspace
sharedWorkspace] typeOfFile:aPath error:NULL] conformsToType:(NSString
*)kUTTypeFolder])
+ type = SKScriptingBookmarkTypeFolder;
+ else
+ type = SKScriptingBookmarkTypeBookmark;
}
switch (type) {
case SKScriptingBookmarkTypeBookmark:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit