Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > Copying a windo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 977 of 1002
Post > Topic >>

Copying a window from a nib file, to allow multile instances.. how?

by Claire Rand <claire@[EMAIL PROTECTED] > May 10, 2008 at 10:25 PM

simple question, hopefully simple answer.

under vb.net a 'form' (window) is defined as an object, if i wish more 
than one copy its childs play, declare as many as needed.

under osx (using cocoa) how can I manage this?

I can create dynamic windows easily enough, but I wish to use Interface 
Builder to design them, store them in a nib file and load as required.

so far I can load a window from a nib file and display it.. but how can 
i copy it so i could, for example, open it twice? or 'n' times.

looking at a sort of document interface, but there will be several 
document types, with their own windows. So I'm assuming just making 
copies of windows in a nib file would work fine?

the question is how?

am I right in thinking I'd need to create a new instance of the window's 
controller object (so they can operate on different data) and link a 
copy of the window to this copy of the controller..

but how?

tried a google search but basically not found anything helpful.

I'm thinking I'm going about this wrong and there is a really simple 
method, I just don't know it.

help?

pretty please...
 




 5 Posts in Topic:
Copying a window from a nib file, to allow multile instances.. h
Claire Rand <claire@[E  2008-05-10 22:25:39 
Re: Copying a window from a nib file, to allow multile instances
Tom Harrington <tph@[E  2008-05-10 16:05:21 
Re: Copying a window from a nib file, to allow multile instances
Claire Rand <claire@[E  2008-05-10 23:34:17 
Re: Copying a window from a nib file, to allow multile instances
Tom Harrington <tph@[E  2008-05-11 22:33:56 
Re: Copying a window from a nib file, to allow multile instances
Claire Rand <claire@[E  2008-05-12 19:05:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:28:13 CDT 2008.