• 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: Master-Detail interfaces, Multiple Documents, and floating windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Master-Detail interfaces, Multiple Documents, and floating windows


  • Subject: Re: Master-Detail interfaces, Multiple Documents, and floating windows
  • From: Ron Aldrich <email@hidden>
  • Date: Mon, 18 Sep 2006 17:31:54 -0700


On Sep 15, 2006, at 4:06 PM, j o a r wrote:


On 16 sep 2006, at 00.58, Ron Aldrich wrote:

Now, I've run into another problem - my inspector becomes the main window when it is clicked, and loses track of the selection - How does one keep an inspector from becoming the main window? (Keeping in mind that it has editable text fields).

The NSPanel subclass of NSWindow is designed to be used for inspectors.
NSPanel can become key, but not main.


j o a r

Actually, my inspector is an NSPanel object, but the problem I described above disappeared when I removed the vestigal master-detail interface from my document window.


It would appear that the problem was caused either by the existence of an NSTableView on my document window, or by the existence of an NSTableView on my inspector window (I'm not sure which, because I removed both at the same time).

However, I have run into another problem, having to do with the inspector being the key view. If one of the inspector's text fields is the key view when I quit the application, I crash deep within Cocoa, while disassociating the inspector's bindings.

#0 0x90a4e387 in objc_msgSend
#1 0x003caa00 in ??
#2 0x927cd2f3 in -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:]
#3 0x93645e46 in -[NSController removeObserver:forKeyPath:]
#4 0x93620f62 in -[NSBinder _updateObservingRegistration:]
#5 0x938dd4e1 in -[NSBinder releaseConnectionWithSynchronizePeerBinders:]
#6 0x938e52d2 in -[NSValueBinder releaseConnectionWithSynchronizePeerBinders:]
#7 0x933c3695 in -[NSObject(_NSBindingAdaptorAccess) _releaseBindingAdaptor]
#8 0x933c276c in -[NSView _finalize]
#9 0x933c2188 in -[NSView dealloc]
#10 0x9347a011 in -[NSControl dealloc]
#11 0x933afd43 in -[NSView release]
#12 0x9270d873 in NSPopAutoreleasePool
#13 0x9272c6e6 in +[NSAutoreleasePool releaseAllPools]
#14 0x9352a70b in -[NSApplication _deallocHardCore:]
#15 0x9352a1c5 in -[NSApplication terminate:]
#16 0x93490ea0 in -[NSApplication sendAction:to:from:]
#17 0x9353ec1b in -[NSMenu performActionForItemAtIndex:]
#18 0x9353e95d in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
#19 0x9353e5b4 in -[NSMenu performKeyEquivalent:]
#20 0x9353e055 in -[NSApplication _handleKeyEquivalent:]
#21 0x93471f5b in -[NSApplication sendEvent:]
#22 0x9339d106 in -[NSApplication run]
#23 0x93391037 in NSApplicationMain
#24 0x0000fffc in main at main.m:13


GDB: Program received signal:  "EXC_BAD_ACCESS".

If I click on the document window, so that the inspector is not active, the crash does not occur.

Ron

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Master-Detail interfaces, Multiple Documents, and floating windows (From: Ron Aldrich <email@hidden>)
 >Re: Master-Detail interfaces, Multiple Documents, and floating windows (From: George Orthwein <email@hidden>)
 >Re: Master-Detail interfaces, Multiple Documents, and floating windows (From: Ron Aldrich <email@hidden>)
 >Re: Master-Detail interfaces, Multiple Documents, and floating windows (From: j o a r <email@hidden>)

  • Prev by Date: "New" validateMenuItem not being called?
  • Next by Date: Re: Evaluating an NSString to a symbol at runtime...
  • Previous by thread: Re: Master-Detail interfaces, Multiple Documents, and floating windows
  • Next by thread: Using UserDefaults properly
  • Index(es):
    • Date
    • Thread