• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic User Interface with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic User Interface with Cocoa


  • Subject: Re: Dynamic User Interface with Cocoa
  • From: Georg Tuparev <email@hidden>
  • Date: Wed, 23 Jun 2004 20:26:40 +0200

On Jun 23, 2004, at 1:13 AM, Chris Hanson wrote:

You can just instantiate a control with +alloc/-initWithFrame:, set its bindings with -bind:... or set its target & action with -setTarget:/-setAction:, and add it to another view with -addSubview:. It's up to you to size, position, and fully configure the control when you do this rather than use Interface Builder.

Unfortunately this is true in theory, and was true on NeXTSTEP - not any more. I had a major pain to configure a dynamic UI (specially NSTextFields ... but NSButtons are also no joy). I ended up configuring with IB all widget prototypes i needed, and later after dynamically creating new controls (using +alloc/-initWithFrame:) to copy the corresponding NSCell from the template and setting it to the newly created widget...

Of course I am lazy bastard ... so more hard working folks can choose a different path :-)

Just my 0.02

-- georg --

"War is God's way of teaching Americans about geography."
Ambrose Bierce, writer (1842-1914)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Dynamic User Interface with Cocoa (From: "Alexander F. Hartner" <email@hidden>)
 >Re: Dynamic User Interface with Cocoa (From: Chris Hanson <email@hidden>)
 >Re: Dynamic User Interface with Cocoa (From: "Alexander F. Hartner" <email@hidden>)
 >Re: Dynamic User Interface with Cocoa (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: kCFPreferencesAnyUser w/PreferencePane not working?
  • Next by Date: Re: bundlePath, FSPathMakeRef and FSGetCatalogInfo alias error
  • Previous by thread: Re: Dynamic User Interface with Cocoa
  • Next by thread: Re: Dynamic User Interface with Cocoa
  • Index(es):
    • Date
    • Thread