• 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: Newbie Window/Scrolling Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Newbie Window/Scrolling Question (From: email@hidden (Farl))

  • Prev by Date: Re: AppleScript and error messages
  • Next by Date: Some help would be greatly appreciated
  • Previous by thread: Re: Newbie Window/Scrolling Question
  • Next by thread: Tracking animation in multiple windows using NSTimer vs NSThread?
  • Index(es):
    • Date
    • Thread