Re: Switching Contents of NSView

2009-07-05 Thread Eagle Offshore
If I'm doing a lot of swapping of a limited number of views, I stick them in a tabbed view with hidden tabs. On Jul 5, 2009, at 3:18 PM, Pierce Freeman wrote: Hi Everyone: I am making an application that has a choice of what function the user wants to perform. When the user clicks on thei

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Joel: Thanks for the link - I'll definitely check it out. On 7/5/09 6:50 PM, "Joel Norvell" wrote: > > Pierce, > > As an adjunct to "document reading skills," I've found that there's no > substitute for a class browser. > > Andy Lee has written Appkido, an excellent class browser for Cocoa!

Re: Switching Contents of NSView

2009-07-05 Thread Joel Norvell
Pierce, As an adjunct to "document reading skills," I've found that there's no substitute for a class browser. Andy Lee has written Appkido, an excellent class browser for Cocoa! http://homepage.mac.com/aglee/downloads/appkido.html There are other ways to browse the Cocoa class hierarchy, but

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Once again, I fail when the documentation succeeds. I¹ll have to work on my documentation reading skills over the next week or so. On 7/5/09 4:33 PM, "Andy Lee" wrote: > Make sure you heed this part of the documentation: > >> This method causes oldView to be released; if you plan to reuse it,

Re: Switching Contents of NSView

2009-07-05 Thread Andy Lee
Make sure you heed this part of the documentation: This method causes oldView to be released; if you plan to reuse it, be sure to retain it before sending this message and to release it as appropriate when adding it as a subview of another NSView. --Andy On Jul 5, 2009, at 7:26 PM, Pierc

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Kiel: Wasn't suggesting Google is always the right place to look, but in this case it just happened to find it right away. And just checked my preferences, and it did in fact have title selected. Will have to change that... On 7/5/09 4:25 PM, "Kiel Gillard" wrote: > If you are suggesting Goo

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
I am finally reverting to using NSView's replaceSubview:with: command. The only problem is that when I run this command partnered with addSubview, it removes the view from the window where I placed it originally. This is problematic when I try to go back and forth between views as the application

Re: Switching Contents of NSView

2009-07-05 Thread Kiel Gillard
If you are suggesting Google was the right place to look, unfortunately you are mistaken. Directly underneath the toolbar of the documentation window should be a scope bar that attempts to help you find the information you're looking for. Perhaps you're searching the documentation by Title

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
You're right, I was looking in the wrong place. A good Google search (versus the built in documentation) did the trick. For future reference, it's under "NSBundle Additions" versus the plain "NSBundle". On 7/5/09 3:45 PM, "I. Savant" wrote: > On Jul 5, 2009, at 6:42 PM, Pierce Freeman wrote:

Re: Switching Contents of NSView

2009-07-05 Thread I. Savant
On Jul 5, 2009, at 6:42 PM, Pierce Freeman wrote: That makes sense - I'll definitely try that! And just asking, but from the first link you sent, what does this return? [NSBundle loadNibNamed:@"someNibFile" owner:d]; My assumption is that it's not a view. Come on, you're not even try

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
That makes sense - I'll definitely try that! And just asking, but from the first link you sent, what does this return? [NSBundle loadNibNamed:@"someNibFile" owner:d]; My assumption is that it's not a view. On 7/5/09 3:31 PM, "I. Savant" wrote: > On Jul 5, 2009, at 6:30 PM, Pierce Freeman wro

Re: Switching Contents of NSView

2009-07-05 Thread I. Savant
On Jul 5, 2009, at 6:31 PM, I. Savant wrote: Read the documentation. It replaces the view you specify with the other view you specify. Put each group in their own container views, then only swap the containers ... ... to be specific, you'll tell the *parent* view (in which you're swapp

Re: Switching Contents of NSView

2009-07-05 Thread I. Savant
On Jul 5, 2009, at 6:30 PM, Pierce Freeman wrote: And for the NSView function that you suggested, does this replace all the subviews in that view as I will most likely have more then one? Read the documentation. It replaces the view you specify with the other view you specify. Put each

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
I. Savant Depending on the method in which you suggest, I may know how to use load the nib - but I'll take a look at the link. And for the NSView function that you suggested, does this replace all the subviews in that view as I will most likely have more then one? On 7/5/09 3:21 PM, "I. Savant"

Re: Switching Contents of NSView

2009-07-05 Thread I. Savant
On Jul 5, 2009, at 6:18 PM, Pierce Freeman wrote: I am making an application that has a choice of what function the user wants to perform. When the user clicks on their choice, I want a NSView to take on the contents of a specific nib file. I assume there must be a way (hopefully) easy tha

Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Hi Everyone: I am making an application that has a choice of what function the user wants to perform. When the user clicks on their choice, I want a NSView to take on the contents of a specific nib file. I assume there must be a way (hopefully) easy that this is accomplished with, as most applic