|
From: Kevin W. <kw...@co...> - 2010-03-11 03:46:06
|
On 3/10/10 10:10 AM, Kevin Walzer wrote: > I'm also not sure how to work around these issues. The most brute-force > way to do this would be to set up different procedures for drawing the > window from a menu command vs. a button, and documenting this in the man > pages, but I'd rather not go this route unless absolutely necessary. A post on c.l.t. suggested adding an additional "source" parameter (menu or button) to the main procedure that draws the sheet window, then loading the correct settings based on that parameter. That's what I'll be doing in the next version of macsheet, which will be released as soon as I stress test the changes in a real app. This isn't a perfect solution, but I don't have time to dig into the guts of Cocoa to figure out what's going on. I'll post a note when the new version and updated docs are released. -- Kevin Walzer Code by Kevin http://www.codebykevin.com |