The following code produces an empty string:
calender = [ [ NSCalendar autoupdatingCurrentCalendar ] retain ];
NSString *dateTemplate = @"eeeddHHmmss";
NSLocale *locale = [calender locale]; // en_IE
NSString *dateFormat = [ NSDateFormatter dateFormatF
Hi Andreas.
"NSTextView has built-in support for text tables, which provides the easiest way to
add table support to your text view. This table support is in the form of the action
method orderFrontTablePanel:. This method inserts a table into the text view and opens a
modeless utility window
On 27 Sep 2011, at 3:41 AM, Gerriet M. Denkmann wrote:
> [ dateFormatter setGeneratesCalendarDates: YES ];
...
> NSLog(@" now \"%@\"", [dateFormatter stringFromDate: [NSDate date]]);
NSCalendarDate is really most sincerely deprecated, and you're feeding the
formatter an NSDate, not a
On Sep 26, 2011, at 9:22 PM, Quincey Morris wrote:
> On Sep 26, 2011, at 19:03 , Ariel Feinerman wrote:
>
>> if I use persistence NSMutableArray as content array in NSArrayController so
>> [arrayController setContent: m_array]; will controller copy one or retain?
>
> The array controller will *o
On 27 Sep 2011, at 21:39, Fritz Anderson wrote:
> On 27 Sep 2011, at 3:41 AM, Gerriet M. Denkmann wrote:
>
>> [ dateFormatter setGeneratesCalendarDates: YES ];
> ...
>> NSLog(@" now \"%@\"", [dateFormatter stringFromDate: [NSDate date]]);
>
> NSCalendarDate is really most sincerely de
On Sep 27, 2011, at 9:53 AM, Gerriet M. Denkmann wrote:
>>
>> In general, what happens if you temporarily remove the locale and time zone
>> settings?
> The time zone settings have been already removed, because setting the locale
> also sets the time zone.
NSLocale has no idea about time zon
On 27 Sep 2011, at 22:03, glenn andreas wrote:
>
> On Sep 27, 2011, at 9:53 AM, Gerriet M. Denkmann wrote:
>
>>>
>>> In general, what happens if you temporarily remove the locale and time zone
>>> settings?
>> The time zone settings have been already removed, because setting the locale
>> al
On 2011 Sep 26, at 11:57, Dave Fernandes wrote:
> Does the deleted object have relationships?
Yes. The object is of entity Foo which are classic tree nodes. There is a
root Foo; Foo objects have to-one parents and to-many children, etc.
> What is the state of those objects?
It's always the
On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock said:
>Yes. After studying this some more I see that, in older code, I did not
>declare outlets as properties. Instead, I put the IBOutlet directive on the
>ivar,
>
>@interface MyWinCon : NSWindowController
>{
>IBOutlet FooView *m_fooView
On Sep 27, 2011, at 10:06 AM, Matt Neuburg wrote:
> On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock said:
>
>> Yes. After studying this some more I see that, in older code, I did not
>> declare outlets as properties. Instead, I put the IBOutlet directive on the
>> ivar,
>>
>> @interface M
On Sep 27, 2011, at 07:40 , Keary Suska wrote:
> On Sep 26, 2011, at 9:22 PM, Quincey Morris wrote:
>
>> On Sep 26, 2011, at 19:03 , Ariel Feinerman wrote:
>>
>>> if I use persistence NSMutableArray as content array in NSArrayController so
>>> [arrayController setContent: m_array]; will controll
Thank you for your letters. So it is good news. Do -insertObject: atIndex:,
-removeObject: or removeObjects: use KVO? I guess they do.
2011/9/27 Quincey Morris
> On Sep 27, 2011, at 07:40 , Keary Suska wrote:
>
> On Sep 26, 2011, at 9:22 PM, Quincey Morris wrote:
>
> On Sep 26, 2011, at 19:03 ,
Whoops, apparently only sent this to Quincey. So unfortunately, no
good news for you, Ariel. You need to either bind the controller's
contentArray binding, or manually set its contentObject property. The
insertion and removal methods on NSArray cannot possibly be
KVO-compliant because NSArray in it
On Sep 27, 2011, at 12:18 , Ariel Feinerman wrote:
> So it is good news. Do -insertObject: atIndex:, -removeObject: or
> removeObjects: use KVO? I guess they do.
If you use these methods, you don't have to write any manual synchronization
code. Your original array will contain the modified cont
On Sep 27, 2011, at 10:06 AM, Matt Neuburg wrote:
> On Fri, 23 Sep 2011 22:08:43 -0700, Jerry Krinock said:
>> Yes. After studying this some more I see that, in older code, I did not
>> declare outlets as properties. Instead, I put the IBOutlet directive on the
>> ivar,
>>
>> @interface MyWin
Hello everyone,
I have a user reporting a crash whenever they try to first save a file. It is
reproducible for the user (though not be me) and I'm wondering how to best
debug this problem remotely. I've included the crash stack below (all other
threads are waiting/trapped).
I'm no expert on dy
On 9/21/11, Jens Alfke wrote:
>
> On Sep 21, 2011, at 7:42 PM, Eric Wing wrote:
>
>> I have been using the delegate callback
>> textField:shouldChangeCharactersInRange:replacementString for
>> UITextField.
>> I am trying to port code over to Mac using NSTextField. Is there
>> something that provid
On Sep 27, 2011, at 1:41 AM, Gerriet M. Denkmann wrote:
> The following code produces an empty string:
>
> calender = [ [ NSCalendar autoupdatingCurrentCalendar ] retain ];
> NSString *dateTemplate = @"eeeddHHmmss";
> NSLocale *locale = [calender locale]; // en_I
On Sep 27, 2011, at 2:06 PM, Martin Wierschin wrote:
> I have a user reporting a crash whenever they try to first save a file. It is
> reproducible for the user (though not be me) and I'm wondering how to best
> debug this problem remotely. I've included the crash stack below (all other
> thread
Eric,
We really recommend looking at the approach I described earlier using
NSFormatter subclass for input validation.
- (BOOL)isPartialStringValid:(NSString **)partialStringPtr
proposedSelectedRange:(NSRangePointer)proposedSelRangePtr
originalString:(NSString *)origString
originalSelectedRang
> Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't
> Append Zeros
> To: Philip McIntosh
> Cc: cocoa-dev@lists.apple.com
> Message-ID: <62796e49-61ed-4b4a-8315-bdeaabeb4...@manoverboard.org>
> Content-Type: text/plain; charset=windows-1252
>
> On 23 Sep 2011, at 6:48 P
On 28 Sep 2011, at 04:51, Vincent Spader wrote:
>
> On Sep 27, 2011, at 1:41 AM, Gerriet M. Denkmann wrote:
>
>> The following code produces an empty string:
>>
>> calender = [ [ NSCalendar autoupdatingCurrentCalendar ] retain ];
>> NSString *dateTemplate = @"eeeddHHmmss";
>>
So in the case of insertion to m_array, we just have to reset content
property:
// somewhere in the code
[self willChangeValueForKey: @"content"];
[m_array insertObject: url atIndex: 0];
[self didChangeValueForKey: @"content"];
// in the -observeValue...
[controller setContent: m_array];
well?
I have the following code which creates two arrays of 97 elements each, then
creates an NSDictionary.
However, the dictionary only has 30 elements in it, and reports no errors
during creation. None of the keys should be a duplicate .
tzKeys = [NSArray
arrayWithObjects:TZ_Eniwetok,TZ_Kwajalein
On Sep 27, 2011, at 18:21 , Dale Satterfield wrote:
>tzDict = [NSDictionary dictionaryWithObjects:tzKeys forKeys:tzValues];
Don't you mean:
tzDict = [NSDictionary dictionaryWithObjects:tzValues forKeys:tzKeys];
___
Cocoa-dev mailing lis
On 28/09/2011, at 11:21 AM, Dale Satterfield wrote:
> tzDict = [NSDictionary dictionaryWithObjects:tzKeys forKeys:tzValues];
You've transposed the values and the keys here, and since the values are not
unique, you end up with only 30 unique "keys" (which are really the values).
--Graham
__
On Sep 27, 2011, at 17:51 , Ariel Feinerman wrote:
> So in the case of insertion to m_array, we just have to reset content
> property:
>
> // somewhere in the code
> [self willChangeValueForKey: @"content"];
> [m_array insertObject: url atIndex: 0];
> [self didChangeValueForKey: @"content"]
Hi,
I have a need for a complex data-entry form (window). Some fields are
supposed to only accept alpha characters (upper or lower), some are supposed to
only take integers, others to only take floats (but no negative values
allowed). Is there a general way of validating the contents of a fiel
> We really recommend looking at the approach I described earlier using
> NSFormatter subclass for input validation.
Unfortunately, I am not actually formatting or validating anything so
this isn't helpful for me. I am working on a middle-layer framework
and what I am interested in is the text cha
29 matches
Mail list logo