• 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: programmaticaly modify .nib files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programmaticaly modify .nib files


  • Subject: Re: programmaticaly modify .nib files
  • From: "Frank D. Engel, Jr." <email@hidden>
  • Date: Fri, 6 May 2005 09:28:10 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I'm new to this list, so I guess it's just as well that I found a thread so similar to the problem I am trying to solve.

I don't need to modify the nib file or anything, but I am trying to create a framework as a plug-in of sorts for some programs I am thinking about writing in Cocoa. As part of the framework I would like to have a method in an Objective-C class that displays a custom dialog from a NIB file embedded in the framework.

I think I figured out how to load the NIB file (using the NSNib and NSBundle classes), but how do I actually get a reference for a specific dialog within the NIB file? There are four different versions of the dialog, and I want to display a different one depending on the parameters sent to the method.

Thank you!


On May 5, 2005, at 10:10 PM, Ondra Cada wrote:

Pierre,

On 6.5.2005, at 5:03, Pierre Chatel wrote:

On 5 mai 05, at 22:41, Ondra Cada wrote:



To change an attributes of an object loaded from a NIB you use its documented API -- if it is a window, use NSWindow messages, and so forth.

To change a NIB file there is no public API far as I know, short of launching nibtool with appropriate arguments. What do you need this for? Perhaps there's a better way.



yes, this is what i'm looking for. Change the NIB file. But from my cocoa code.



I fear the options are pretty limited:

- nibtool: if its options are sufficient;
- controlling InterfaceBuilder externally: ugly and error-prone;
- cracking the NIB format: more error-prone.

Sorry, don't have a better answer. Again, what's the goal? Perhaps it can be done in an easier way than changing NIBs? For example, if you want to parametrize other applications, you have great options in Cocoa: you can force your bundle to be loaded into a foreign app, doing there whatever you want to...
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


- -----------------------------------------------------------
Frank D. Engel, Jr.  <email@hidden>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)


iD8DBQFCe3Dr7aqtWrR9cZoRAljPAJ9nHpyY0wuYNy7Im3yDCjlFXkoSfwCfbkNV
wSeSuXwKJQzZHU2Z2BIb7gQ=
=DWN5
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: programmaticaly modify .nib files
      • From: Nick Zitzmann <email@hidden>
References: 
 >programmaticaly modify .nib files (From: Pierre Chatel <email@hidden>)
 >Re: programmaticaly modify .nib files (From: Ondra Cada <email@hidden>)
 >Re: programmaticaly modify .nib files (From: Ondra Cada <email@hidden>)

  • Prev by Date: Mirrored data
  • Next by Date: table column with <date value> null placeholder
  • Previous by thread: Re: programmaticaly modify .nib files
  • Next by thread: Re: programmaticaly modify .nib files
  • Index(es):
    • Date
    • Thread