Simplify document open API

Removed the ability to specify wether documents should open in current window or a new window — all documents opened via this API will go through the same algorithm to find where the documents should end up (more choice is just adding confusion and complexity).
This commit is contained in:
Allan Odgaard
2013-01-10 05:30:41 +01:00
parent d8cc115a5e
commit bccaee4be6
7 changed files with 10 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ OAK_DEBUG_VAR(HTMLOutput_JSBridge);
range = text::pos_t([options intValue]-1, 0);
else if([options isKindOfClass:[NSString class]])
range = to_s((NSString*)options);
document::show(document::create(to_s(path)), document::kCollectionCurrent, range);
document::show(document::create(to_s(path)), document::kCollectionAny, range);
}
- (id)system:(NSString*)aCommand handler:(id)aHandler