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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Nikolaus Waxweiler <madleser>
Submitted on:  Sat 28 Jan 2006 10:30:17 PM UTC  
 
Category: GormSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

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

Corrected in SVN repository.

Gregory John Casamento <gcasa>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 02 Feb 2006 03:16:01 AM UTCgcasaStatusNone=>Fixed
  Assigned toNone=>gcasa
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1