Re: NSBrowser Question
Thanks for your response. That's exactly what I was doing but your response made me take another look (I was working on this all day yesterday). It seems I was reloading the column before the wrapper was completely saved (even though I thought I was)! When I put the reload code in a button and clicked it after the save it works fine. Ugh - if I did this yesterday I would have saved hours of frustration! On Feb 14, 2010, at 9:19 PM, Keary Suska wrote: On Feb 14, 2010, at 3:53 PM, Brad Stone wrote: I have an app that saves it's documents in a fileWrapper. The document's window has a NSBrowser where users can attach files. Before the document is saved for the first time the NSBrower's root is a temporary attachments folder (because the filewrapper doesn't exist). After it's saved that attachment folder is moved into the wrapper. When I save the file for the first time, even though I set the root item to the attachment folder in the wrapper, the Browser can't find the attachments (the items are still looking in the temp folder). If I close and reopen the document it works fine. What do I have to do to tell the NSBrowser that the root item has been changed and that the items are now in the attachment folder in the wrapper? Did you call reloadColumn: after the change? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40softraph.com This email sent to cocoa-...@softraph.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSBrowser Question
I have an app that saves it's documents in a fileWrapper. The document's window has a NSBrowser where users can attach files. Before the document is saved for the first time the NSBrower's root is a temporary attachments folder (because the filewrapper doesn't exist). After it's saved that attachment folder is moved into the wrapper. When I save the file for the first time, even though I set the root item to the attachment folder in the wrapper, the Browser can't find the attachments (the items are still looking in the temp folder). If I close and reopen the document it works fine. What do I have to do to tell the NSBrowser that the root item has been changed and that the items are now in the attachment folder in the wrapper? Thanks___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSBrowser Question
On Feb 14, 2010, at 3:53 PM, Brad Stone wrote: I have an app that saves it's documents in a fileWrapper. The document's window has a NSBrowser where users can attach files. Before the document is saved for the first time the NSBrower's root is a temporary attachments folder (because the filewrapper doesn't exist). After it's saved that attachment folder is moved into the wrapper. When I save the file for the first time, even though I set the root item to the attachment folder in the wrapper, the Browser can't find the attachments (the items are still looking in the temp folder). If I close and reopen the document it works fine. What do I have to do to tell the NSBrowser that the root item has been changed and that the items are now in the attachment folder in the wrapper? Did you call reloadColumn: after the change? Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com