bugGNUstep - Bugs: bug #15556, TextField + DateFormatter +...

Group
 
 

bug #15556: TextField + DateFormatter + checking "Allows natural language" -> Crash

Submitter:  Nikolaus Waxweiler <madleser>
Submitted:  Sat 28 Jan 2006 10:30:17 PM UTC
   
 
Category:  Gorm Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Feb 2006 03:16:01 AM UTC, comment #2: 

Corrected in SVN repository.

Gregory John Casamento <gcasa>
Group administrator
Sun 29 Jan 2006 05:46:31 AM UTC, comment #1: 

Verified.  I will take a closer look at this tomorrow.  Thanks for the report.

Gregory John Casamento <gcasa>
Group administrator
Sat 28 Jan 2006 10:30:17 PM UTC, original submission:  

1. Document -> New Application
2. Drag 'n Drop a TextField onto the app.
3. Drag 'n Drop a DateFormatter on the TextField.
4. Inspector -> "Formatter" section.
5. Check "Allows natural language".
6. Crash (doesn't if you unfocus/minimize the application fast enough):

#0  0x287b8178 in objc_msg_lookup () from /usr/lib/libobjc.so.2
#1  0x2857e5d8 in -[NSDateFormatter initWithDateFormat:allowNaturalLanguage:] () from /usr/local/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11
#2  0x298ec6d8 in -[GormDateFormatterAttributesInspector ok:] (self=0x882edc8, _cmd=0x80bbf10, sender=0x8820308) at GormDateFormatterAttributesInspector.m:106

line 106: fmtr = [[NSDateFormatter alloc] initWithDateFormat:dateFmt

'dateFmt' is nil here, since the if-else thingy above it doesn't initialize it. From what I understand from it, the whole "ok:" method only ever looks at 'sender', which is a checkbox in this case, and doesn't check whether there's already a working 'fmtr'.

Nikolaus Waxweiler <madleser>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-02-02 gcasa StatusNone Fixed
    Assigned toNone gcasa
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code