Re: Documentation, Newbieness, and All That
Re: Documentation, Newbieness, and All That
- Subject: Re: Documentation, Newbieness, and All That
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 10 Nov 2001 11:15:23 -0600
>
1. Establish an asynchronous telnet channel to some telnetish
>
service? NSFileHandle combined with SimpleSockets (to get a Unix
>
file descriptor for NSFileHandle) and suitable notifications seems
>
to be an answer, but an example would be nice.
You can always do this using C and BSD API.
If I was at the office I could mail sample code using NSFileHandle to you.
>
>
2. Change the appearance of a window's background from the default
>
gray prison stripes? I know that the window's NSView object can
>
be obtained, or changed...all I want is to override its drawRect
>
method... I'm stumped...interim solution is to put a big custom
>
NSView into the window that covers the background, and lives behind
>
the other widgets. Is there a more direct approach?
I don't know how to do this either. This is a recent Appleism that I don't
like either.
>
>
3. Do an "Inspector/Get Info" window? The "Sketcher" sample code provides
>
an example, but it took a while to find it, and is not obvious as to how
>
the connections between the inspector's Nib and its controller class were
>
built in the first place, nor how the Nib file was initially constructed.
There are lots of examples of this. I think "Learning Cocoa" even explains
this. Most use either a tab view with no tabs or a box to hold the
different views. Connections in IB are seldom obvious to anybody but the
person who made them. Documenting IB connections has been a problem fro 12
years.
Just dive in and try it. Play with IB and you will quickly realize how to
construct the nib files.