• 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: what is a valid key-path? why can't I bind to NSURL's -path method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what is a valid key-path? why can't I bind to NSURL's -path method?


  • Subject: Re: what is a valid key-path? why can't I bind to NSURL's -path method?
  • From: Perrog <email@hidden>
  • Date: Mon, 19 Feb 2007 02:12:06 +0100

Hi!

2007/2/19, Mike Abdullah <email@hidden>:
In what way does it bail out?  Is it as soon as you try to bind it,
or when something is entered into the text field?


Note that the NSTextField is read-only, and does not change the value.

The program receives EXC_BAD_ACCESS, and the stack trace look like this:
#0	0x9296925c in -[NSURL release]
#1	0x92969290 in -[NSURL release]
#2	0x92969290 in -[NSURL release]
#3	0x92969290 in -[NSURL release]
...
#87235	0x92969290 in -[NSURL release]
#87236	0x907d32c0 in __CFDictionaryDeallocate
#87237	0x907bcf34 in _CFRelease
#87238	0x929e2c88 in -[NSObject(NSKeyValueObserverRegistration)
_addObserver:forProperty:options:context:]
#87239	0x929e23c8 in -[NSObject(NSKeyValueObserverRegistration)
addObserver:forKeyPath:options:context:]
#87240	0x9393004c in -[NSBinder _updateObservingRegistration:]
#87241	0x9392f254 in -[NSBinder establishConnection]
#87242	0x93928c44 in -[NSObject(NSKeyValueBindingCreation)
bind:toObject:withKeyPath:options:]
#87243	0x000051cc in -[CHMWindowController windowDidLoad] at
CHMWindowController.m:127
#87244	0x937fa924 in -[NSWindowController _windowDidLoad]
#87245	0x937f72f8 in -[NSWindowController window]
#87246	0x937f71e4 in -[NSWindowController showWindow:]
#87247	0x93804774 in -[NSDocument showWindows]
#87248	0x93a3e550 in -[NSDocumentController
openDocumentWithContentsOfURL:display:error:]
#87249	0x93704580 in -[NSDocumentController(NSInternal) _openFile:]
#87250	0x937040bc in -[NSApplication _doOpenFile:ok:tryTemp:]
#87251	0x939d1c60 in -[NSApplication openFile:ok:]
#87252	0x93a3f520 in -[NSDocumentController(NSPrivate) _openRecentDocument:]
#87253	0x937a7c4c in -[NSApplication sendAction:to:from:]
#87254	0x938024b8 in -[NSMenu performActionForItemAtIndex:]
#87255	0x9380223c in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:]
#87256	0x93709500 in _NSHandleCarbonMenuEvent
#87257	0x93706e64 in _DPSNextEvent
#87258	0x937067a8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#87259	0x93702cec in -[NSApplication run]
#87260	0x937f387c in NSApplicationMain
#87261	0x000035bc in main at main.m:38

Regards,
Rog
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >what is a valid key-path? why can't I bind to NSURL's -path method? (From: Perrog <email@hidden>)
 >Re: what is a valid key-path? why can't I bind to NSURL's -path method? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Preventing beach balls
  • Next by Date: Re: what is a valid key-path? why can't I bind to NSURL's -path method?
  • Previous by thread: Re: what is a valid key-path? why can't I bind to NSURL's -path method?
  • Next by thread: Re: what is a valid key-path? why can't I bind to NSURL's -path method?
  • Index(es):
    • Date
    • Thread