[Rubycocoa-devel 548] Re: Can't get Objective-C method signature for selector

Back to archive index

lc3b****@mac***** lc3b****@mac*****
Wed Jan 3 15:10:19 JST 2007


On Jan 2, 2007, at 6:50 PM, Laurent Sansonetti wrote:

>> 2) Editing the text in the table (clicking with the mouse and typing
>> and then hitting enter to commit the edit and move on the the next
>> row in the table) cause a crash. There is nothing reported to the Run
>> Log but a debugger session pops up.
>> This happens even if DISABLE observing for undo (the two functions
>> below):
>>
>> [MyDocument.rb:91-99]
>>    def startObservingPerson(person)
>>      person.addObserver_forKeyPath_options_context(self,
>> "person_name", OSX::NSKeyValueObservingOptionOld, nil)
>>      person.addObserver_forKeyPath_options_context(self,
>> "expected_raise", OSX::NSKeyValueObservingOptionOld, nil)
>>    end
>>
>>    def stopObservingPerson(person)
>>      person.removeObserver_forKeyPath(self, "person_name")
>>      person.removeObserver_forKeyPath(self, "expected_raise")
>>    end
>>
>> Currently I do not know of any way to provide more information on
>> this.
>>
>
> Mmh this is weird, could you give us a pointer to your code so that I
> can try to reproduce the crash?
>

The code is available from here: http://blog.vazexqi.com/files/ 
RubyRaiseMan.tgz (it's an Xcode project).

The relevant file would be MyDocument.rb where I make use of an  
NSArrayController to add/remove/edit the contents of the table.

Thanks.

--
Nicholas Chen





More information about the Rubycocoa-devel mailing list
Back to archive index