On Thursday, January 30, 2003, at 02:08 AM, Sherm Pendley wrote:

$dnc->addObserver_selector_name_object(
    $self,
    "tableViewSelectionDidChange:",
    "NSTableViewSelectionDidChangeNotification",
    undef
);
A third point - note the use of undef instead of '' to pass a nil argument. An empty string is still a string, and passed as an NSString object. To pass a nil argument, pass undef.

Passing an object as the fourth argument to this method would mean that only notifications posted by that object will be sent to your observer object - and an NSString object will presumably never post this particular notification.

sherm--

C programmers never die - they're just cast into void.



Reply via email to