discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineViewColumnDidResizeNotification


From: Marcus Müller
Subject: Re: NSOutlineViewColumnDidResizeNotification
Date: Thu, 13 Mar 2003 17:19:45 +0100


On Thursday, Mar 13, 2003, at 15:24 Europe/Berlin, Andreas Heppel wrote:

Hi folks,
I have a question concerning the above mentioned notification.
Using an NSOutlineView the outline view itself will register it's delegate for processing of those notifications. The problem now is that an NSTableColumn object will send an NSTableViewColumnDidResizeNotification.
^^^^^

Hi,

I just checked the behaviour on Mac OS X, here's a backtrace:

#0 -[SharedBookmarkController outlineViewColumnDidResize:] (self=0x143ff00, _cmd=0x906c5968, aNotification=0x1447370) at SharedBookmarkController.m:355/private/automount/Network/Users/znek/Projects/mulle-private-cvs/znek/Bookmarker/
#1 0x907eaf7c in _nsNotificationCenterCallBack ()
#2 0x90168580 in CFStorageDeleteValues ()
#3 0x90165ca0 in _CFNotificationCenterPostLocalNotification ()
#4 0x9313e054 in -[NSTableColumn _postColumnDidResizeNotificationWithOldWidth:] ()
#5 0x931672bc in -[NSTableColumn setWidth:] ()
#6 0x932093dc in -[NSOutlineView _resizeOutlineColumn] ()
#7 0x93208af4 in -[NSOutlineView expandItem:expandChildren:] ()
[...]

This is what my delegate receives in its - (void)outlineViewColumnDidResize:(NSNotification *)aNotification
delegate method:

2003-03-13 16:47:09.271 Bookmarker[662] -[SharedBookmarkController outlineViewColumnDidResize:] NSOutlineViewColumnDidResizeNotification:NSConcreteNotification 1447370 {name = NSOutlineViewColumnDidResizeNotification; object = <BMOutlineView: 0x1444da0>; userInfo = <CFDictionary 0x2674f0 [0xa01303fc]>{type = immutable, count = 2, capacity = 2, pairs = (
0 : <CFString 0xa3083fb8 [0xa01303fc]>{contents = "NSTableColumn"} = <NSTableColumn: 0x14477f0>
2 : <CFString 0xa3083fc8 [0xa01303fc]>{contents = "NSOldWidth"} = <CFNumber 0x1709cd0 [0xa01303fc]>{value = +197, type = kCFNumberSInt32Type}
)}}


It appears that on Mac OS X NSTableColumn posts both notifications, so it would be best to do this on GNUstep as well.

Cheers,

Marcus

--
Marcus Mueller . . . crack-admin/coder ;-)
Mulle kybernetiK . http://www.mulle-kybernetik.com
Current projects: finger znek@mulle-kybernetik.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]