Re: Newbie Window/Scrolling Question
Re: Newbie Window/Scrolling Question
- Subject: Re: Newbie Window/Scrolling Question
- From: Gary C Martin <email@hidden>
- Date: Mon, 13 Aug 2001 00:43:21 +0100
On Sunday, August 12, 2001, at 01:57 am, Farl wrote:
My problem is that I want to be able to write to it as certain events
trigger. The user needs to be able to scroll up and down the list that
is generated in the textbox. I managed to get it to read and write using
a simple textbox (one without scrollbars), but when I tried the same
thing with a scrollingbox, the methods were obviously not correct
anymore.
Just a quick general idea (as another Cocoa starter), add the below code
to one of your objects (probably your controller) and make that object
the delegate of whatever control in IB you want:
- (BOOL)respondsToSelector: (SEL)someSelector {
// Debugging code, logs all delegate queries to this object
NSLog(@"respondsToSelector: %@", NSStringFromSelector(someSelector));
return [super respondsToSelector:someSelector];
}
You'll get a log of delegated events you may (or may not) want to
implement somewhere. Also a good place to start your documentation or .h
file searches to find out how things tick.
Regards,
Gary
PS. picked up this from the Learning COCOA book.