Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
- Subject: Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
- From: "David M. Cotter" <email@hidden>
- Date: Thu, 17 Sep 2009 15:39:33 -0700
i really am stuck on this, i've googled and searched the apple site
but can find nothing on this. if anyone has any clue i would be most
siked.
bouns: free karaoke app for someone who solves this!
-dave
On Sep 16, 2009, at 10:54 AM, David M. Cotter wrote:
when i try to set a breakpoint on setDocumentEdited, the
"enabled" check box shows "mixed" state, and the breakpoint is
never hit. if i try to set it to "on" it goes back to mixed state
so i can't set a breakpoint :(
What are the exact steps you use to set the breakpoint?
open breakpoints window
double click on "double click to add symbol"
paste "setDocumentEdited", press return
[NSApp mainWindow] always returns nil, so i must use myNSWindow
note: i can set this same window's title and the title updates
just fine.
it's a small "palette" style window, not the large title bar but
the small title bar.
-mainWindow only returns NSWindows, not NSPanels. A panel can never
be the 'main' window.
well i'm not sure you should say "never" about that. because in our
app the main window has a small title bar. in fact all windows have
the small title bar. it's still a window, i think, not a panel.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden