• 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: Custom Field Editors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Field Editors


  • Subject: Re: Custom Field Editors
  • From: Andrew <email@hidden>
  • Date: Mon, 2 Aug 2004 21:40:33 +0300

On 02/08/2004, at 8:54 PM, j o a r wrote:

* You're not using the designated initializer for the text view. Bad boy!

Oops. I'm using initWithFrame now...but not having a frame I'm passing NSRect(0,0)... It doesn't seem to have made a difference.

You might want to consider using the method in the window delegate instead (if compatible with your design).

I'll try that and see if it makes a difference. It seems less clean that way though... I'll let you know how it goes in my next message.

* Check to see what field editor is returned when you call "[super setUpFieldEditorAttributes: fieldEditor]". Is it the one you expect (ie. your custom shared instance)?

Yes - no switching has taken place.

What is the backtrace of the crash?

#0 0x908311f4 in objc_msgSend ()
#1 0x92df6ad0 in -[NSTextView(NSSharing) setSelectedRange:affinity:stillSelecting:] ()
#2 0x92eac440 in -[NSTextView mouseDown:] ()
#3 0x92e02c60 in -[NSWindow sendEvent:] ()
#4 0x92df5324 in -[NSApplication sendEvent:] ()
#5 0x92dfd73c in -[NSApplication run] ()
#6 0x92eb9b80 in NSApplicationMain ()
#7 0x000eff74 in main (argc=1, argv=0xbffff984) at /Users/andrew/tmp/CellTest/main.m:13

Interestingly that time I tested it, after I had been randomly editing fields for a while, waiting for a crash, i got a number of messages...

2004-08-02 21:35:59.292 CellTest[18745] *** -[NSTSMInputContext textDidBeginEditing:]:selector not recognized
2004-08-02 21:35:59.292 CellTest[18745] Exception raised during posting of notification. Ignored. exception: *** -[NSTSMInputContext textDidBeginEditing:]: selector not recognized
2004-08-02 21:35:59.926 CellTest[18745] *** -[NSTSMInputContext textDidChange:]: selector not recognized
2004-08-02 21:35:59.927 CellTest[18745] Exception raised during posting of notification. Ignored. exception: *** -[NSTSMInputContext textDidChange:]: selector not recognized
2004-08-02 21:35:59.936 CellTest[18745] *** -[NSTSMInputContext textDidChange:]: selector not recognized

and then after many more of those...

2004-08-02 21:36:42.096 CellTest[18745] *** -[NSCFType textDidBeginEditing:]: selector not recognized
2004-08-02 21:36:42.096 CellTest[18745] Exception raised during posting of notification. Ignored. exception: *** -[NSCFType textDidBeginEditing:]: selector not recognized
2004-08-02 21:36:42.099 CellTest[18745] *** -[NSCFType textDidChange:]: selector not recognized
2004-08-02 21:36:42.099 CellTest[18745] Exception raised during posting of notification. Ignored. exception: *** -[NSCFType textDidChange:]: selector not recognized
2004-08-02 21:36:42.109 CellTest[18745] *** -[NSCFType textDidChange:]: selector not recognized

and so on. Looks like the delegate has changed at some point to some random objects?

Thanks,

Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Custom Field Editors (From: Andrew <email@hidden>)
 >Re: Custom Field Editors (From: j o a r <email@hidden>)

  • Prev by Date: CGImage and NSBitmapImageRep
  • Next by Date: Re: NSBorderless and acceptsFirstMouse
  • Previous by thread: Re: Custom Field Editors
  • Next by thread: Re: Custom Field Editors
  • Index(es):
    • Date
    • Thread