macosx

You are currently browsing articles tagged macosx.

So, I decided to put this on my blog as there’s about 1000 mentions of this problem and none of this simple solution. First, let me start by saying, if you encounter this problem with a program other than Eclipse, please let me know… this seems to be a pervasive problem in Eclipse and it’s derivatives (Aptana Studio, RadRails, etc…)

To get your application’s title bar back on the window, hit F8 to bring up the function key, and then use the spaces view to select the window that you want and drag it to some place where it’s more useful.

Anyway, this will probably be more helpful for people on MacOSX Leopard (and onwards) than otherwise, but it’s been very helpful to me. It seems to affect mostly Eclipse for some reason, but the bug/feature (this wouldn’t be an issue on XWindows) has been around basically forever.

Tags: , ,

note that the latest revision of this blog’s theme seems to have introduced a weird bug with the code layout plugin (wp-syntax) on some browsers. i’m looking into it.

I think the single most useful thing I’ve figured out recently in programming for MacOSX and the iPhone is this little snippet right here.

- (void) updateListForEntityNamed:(NSString*) entityName andSearchString:(NSString*) queryString
{
[...]
 
	MyDocument* current = [[NSDocumentController sharedDocumentController] currentDocument];
	if(current && current != self)
	{
		NSLog(@"CurrentDocument:%@ != self:%@", current, self);
		[current updateListForEntityNamed: entityName andSearchString: queryString];
		return;
	}
[...]
}

What this does is intercept incoming messages that are supposed to go to the current window, and redirect them to that instance. I’ve run into issues in Leopard (MacOSX 10.5) where this is an issue. To some extent, this is probably a misconfiguration in interface builder somewhere, but it also an issue when using CoreData, because the ManagedObjectContexts are particular to instances of NSManagedDocument, and there are issues that arise if you end up using the wrong context.

I am slowly becoming a great fan of CoreData, it’s a great persistence/object-graph-management layer. More on this later.

Tags: , , , , , , , , ,