[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString changes

From: Enrico Sersale
Subject: Re: NSString changes
Date: Mon, 6 Nov 2000 18:16:17 +0200 (EET)

On Mon, 6 Nov 2000 wrote:

> On Monday, November 6, 2000, at 12:43 PM, wrote:
> >  
> > After the latest changes in cvs, it seems that it is now impossible to 
> > sort an array (_i_NSGMutableArray__sortUsingFunction_context_). 
> >  
> > And, if I don't sort it, I get a "NSInternalInconsistencyExeption: Called 
> > +allocWithZone: on private string class" and GWorkspace crashes anyway, 
> > some lines after, in _i_NSString__lastPathComponent. 
> >  
> > The code is in Viewer.m, in the delegate method - (void)browser:(NSBrowser 
> > *)sender createRowsForColumn:(int)column  inMatrix:(NSMatrix *)matrix 
> >  
> > Please help me because I'm fighting with this problem from two days 
> > without any result... 
> Ok - I think I've fixed the bug in getting a substring of a mutable string -
> but what's the problem with sorting arrays?

Solved. My sorting function uses _i_NSString__lastPathComponent ;-)

But now there is a new problem: selecting a matrix cell I get:
"NSCaracterConversionException: Can't get cString from Unicode strings"

#0  0x4073a111 in __kill ()
#1  0x40739d66 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4073b447 in abort () at ../sysdeps/generic/abort.c:88
#3  0x400a1c10 in _NSAppKitUncaughtExceptionHandler (exception=0x84b97c8)
    at NSApplication.m:92
#4  0x40435ee4 in _i_NSException__raise (self=0x84b97c8, _cmd=0x40528ad0)
    at NSException.m:110
#5  0x40435b44 in _c_NSException__raise_format_arguments_
    _cmd=0x40528ab8, name=0x817aab8, format=0x40519b50,
    at NSException.m:75
#6  0x40435a6a in _c_NSException__raise_format_ (self=0x40528a40, 
    _cmd=0x405195a8, name=0x817aab8, format=0x40519b50) at
#7  0x403ceac4 in cString_u (self=0x849c660) at GSString.m:633
#8  0x403cb24b in _i_GSMutableString__cString (self=0x849c660,
    at GSString.m:2165
#9  0x4048a6d8 in handle_printf_atsign (stream=0xbfffe3e4,
    args=0xbfffd6e4) at NSString.m:276
#10 0x40764971 in _IO_vfprintf (s=0xbfffe3e4, format=0x80c00db "%@/%@", 
    ap=0xbfffe58c) at vfprintf.c:1522
#11 0x4076eb81 in _IO_vasprintf (result_ptr=0xbfffe4c0, 
    format=0x80c00db "%@/%@", args=0xbfffe58c) at vasprintf.c:58
#12 0x4048bd86 in _i_NSString__initWithFormat_locale_arguments_ (
    self=0x812af30, _cmd=0x40538bb8, format=0x80ec854, locale=0x0, 
    arg_list=0xbfffe58c) at NSString.m:840
#13 0x4048bcfe in _i_NSString__initWithFormat_arguments_ (self=0x812af30, 
    _cmd=0x40538b00, format=0x80ec854, arg_list=0xbfffe58c) at
#14 0x4048b381 in _c_NSString__stringWithFormat_ (self=0x40538800, 
    _cmd=0x80ec670, format=0x80ec854) at NSString.m:460
#15 0x80618bb in _i_Viewer__browser_selectCellWithString_inColumn_ (
    self=0x8300460, _cmd=0x4026b588, sender=0x8378248, title=0x8691cf0, 
    column=7) at Viewer.m:627
#16 0x400c4ac9 in _i_NSBrowser__doClick_ (self=0x8378248, _cmd=0x80ee7a8, 
    sender=0x8596580) at NSBrowser.m:1991
#17 0x8064faf in _i_GWBrowser__doClick_ (self=0x8378248, _cmd=0x4026bad8, 
    sender=0x8596580) at GWBrowser.m:405

reply via email to

[Prev in Thread] Current Thread [Next in Thread]