<Brieuc> wrote:
> Hello there,
>
> I'm (still) new to Cocoa programming and I would really appreciate some
> help about the following topics :
>
> - Who is the goddam file's owner ?
The file's owner is a proxy in the nib file. Open the nib (e.g.
mainmenu.nib) and look, there's the file's owner in the upper left
corner of the instances window.
The reason I say it's a proxy is that any instance can fulfill this
function. It is the job of the Cocoa program to hook some instance to
the nib as owner when the nib opens.
Usually the instance that fulfills this function is either the NSApp
instance or an NSWindowController instance. But (as you saw) other
architectures are possible. For example, an app that uses the document
architecture might make an NSDocument subclass be the owner for
document.nib, on the grounds that a full-fledged window controller is
unnecessary.
I suggest you read Hillegass. m.

Signature
matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/
Tiger - http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript - http://www.amazon.com/exec/obidos/ASIN/0596005571
Read TidBITS! It's free and smart. http://www.tidbits.com