three small things
three small things
- Subject: three small things
- From: Matt Neuburg <email@hidden>
- Date: Mon, 06 Feb 2006 11:27:05 -0800
- Thread-topic: three small things
I'm just checking to make sure that these three misbehaviors in Xcode are
known:
(1) Format > Reindent sometimes misbehaves. This seems to involve nested
if-clauses. Thus:
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
NSPasteboard* pboard = [sender draggingPasteboard];
if ([[pboard types] containsObject:NSFilenamesPboardType])
if ([sender draggingSourceOperationMask] & NSDragOperationCopy) {
NSArray* files = [pboard
propertyListForType:NSFilenamesPboardType];
if ([files count] == 1) {
BOOL isFolder;
BOOL exists = [[NSFileManager defaultManager]
fileExistsAtPath:[files objectAtIndex:0] isDirectory:&isFolder];
if (exists && isFolder)
return NSDragOperationCopy;
}
}
return NSDragOperationNone;
}
If you reindent that, it comes out like this (notice the last code line is
moved over way too far to the right):
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
NSPasteboard* pboard = [sender draggingPasteboard];
if ([[pboard types] containsObject:NSFilenamesPboardType])
if ([sender draggingSourceOperationMask] & NSDragOperationCopy) {
NSArray* files = [pboard
propertyListForType:NSFilenamesPboardType];
if ([files count] == 1) {
BOOL isFolder;
BOOL exists = [[NSFileManager defaultManager]
fileExistsAtPath:[files objectAtIndex:0] isDirectory:&isFolder];
if (exists && isFolder)
return NSDragOperationCopy;
}
}
return NSDragOperationNone;
}
(2) Option-double-click to see a method in the documentation window
sometimes fails. The situation seems to arise when you've already viewed the
desired page. Option-double-click may then switch to the right page but it
fails to scroll to the method. The same thing happens when doing an API
search from the search field in the help window.
[On that same topic, could we have Much Better keyboard navigation in the
doc window? When I do a search and I get multiple results, I am forced to
mouse-click in order to pick the right result.]
(3) Big change of topic: in IB, when you are doing something to a menu item
in (say) a popped-down menu of the main menu, every time you switch to
another window, when you come back to the main menu the popped-down menu has
become invisible and you have to click twice to see it again, once to close
it and again to open it visibly. Maddening.
If any of these are not known and can be confirmed let me know and I'll file
a bug. Thanks! m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden