Regarding this previous post of mine:
http://www.cocoabuilder.com/archive/message/cocoa/2009/1/13/227642
The code listed in that previous posting contains an error which
results in insidious behaviour:
“EXC_BAD_ACCESS” sometimes generated when dragging within
IKBrowserImageView
I had omitte
Hi Greg,
I mistakenly posted to this list first, when I should have posted to
the sdk list.
The client is not performing a conditional GET request based on
examinations of the outgoing requests (from within the client).
The server is detecting date changes and sending the correct date
(ba
Constraints are immutable objects, once you create them, you cannot
change them. This is a limitation of the constraint layout manager. If
you need more fine-grain control, use a custom layout manager.
Kevin
--
Kevin Cathey
On 10 Apr 2009, at 12:15, Rama Krishna wro
On 13 Mar 2009, at 16:48, Corbin Dunn wrote:
Thank you!
corbin
Just to note, as should probably be expected, that monkeying with the
cell's font within
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row
I've got a strange problem.
I have a list of float constants that I need to compare to the result
of a new calculation.
I derived the constants by performing the calculation, and printing
using NSLog with %f, then just writing down the results in my array of
constants.
So, the result of th
On Sat, Apr 11, 2009 at 2:20 AM, Brian Bruinewoud wrote:
> Ok. That "works". I was coming from an NSOpenGLView example where the view
> sets the context before the drawRect is sent.
>
> Any it, doesn't crash/hang/stop now, but it doesn't draw anything, either...
> :(
Does identical code placed in
On Sat, Apr 11, 2009 at 12:46 PM, James Maxwell
wrote:
> I've got a strange problem.
> I have a list of float constants that I need to compare to the result of a
> new calculation.
>
> I derived the constants by performing the calculation, and printing using
> NSLog with %f, then just writing down
oooh, damn... I was afraid someone was going to say that. I just hoped
there might be some way to force a float to conform to what NSLog %f
prints... That seems like it might be a useful function - something
like pround(aFloat), for "print-round", to force any float number to
round as the p
If what you really want is to see whether the result is the same as %f
previously printed, then you could always make your array of constants
an array of constant _strings_ and then compare the strings. Not
terribly efficient, maybe, but straightforward.
- Greg
On Apr 11, 2009, at
Yeah, that's an idea... But I do need it to be fairly efficient.
I've solved the problem by calculating fabs(val1 - val2) and only
allowing a very small margin of error (0.01). It seems to be
working. If this is still going to be disaster-prone, I'd appreciate a
quick heads-up. But keep
Ken,
I ended up throwing out NSTask in favor of popen for running hdiutil,
and my code seems much more stable now. Did I shoot myself in the foot
some other way? I'm executing this in a pthread of its own. I also
kept getting exceptions thrown for nil arguments to NSConreteTask,
besides t
On Apr 11, 2009, at 2:29 PM, Michael Domino wrote:
I ended up throwing out NSTask in favor of popen for running
hdiutil, and my code seems much more stable now. Did I shoot myself
in the foot some other way? I'm executing this in a pthread of its
own. I also kept getting exceptions thrown fo
James Maxwell wrote:
Yeah, that's an idea... But I do need it to be fairly efficient.
I've solved the problem by calculating fabs(val1 - val2) and only
allowing a very small margin of error (0.01). It seems to be
working. If this is still going to be disaster-prone, I'd
appreciate a qu
James Maxwell wrote:
Now, when I run the calculation "live" and try to compare to my
stored constants, I'm not getting matches. I'm assuming this is
because the result of the calculation *isn't* actually what I
stored in my constants, since the constants were rounded during the
NSLog. So,
I'm not seeing exactly how to go about running my screen save on both
of my displays.
At least I'm not seeing an accessor that allows me to add the rendered
screen saver to more than one display. How would I go about doing that?
Thanks
___
Cocoa
On Apr 11, 2009, at 1:34 PM, Development wrote:
At least I'm not seeing an accessor that allows me to add the
rendered screen saver to more than one display. How would I go about
doing that?
ScreenSaverEngine will always create one instance of your saver view
class per screen.
Nick Zi
hmm... Well, this all sounds like a sledge-hammer approach to my
immediate problem.
The actual explanation of what I'm doing is kind of long-winded, so
I'll spare you that. For now, I know the calculated values will always
come out the same, since there are a limited number of possible
in
On Sat, Apr 11, 2009 at 2:29 PM, Michael Domino
wrote:
> Ken,
>
> I ended up throwing out NSTask in favor of popen for running hdiutil, and my
> code seems much more stable now. Did I shoot myself in the foot some other
> way? I'm executing this in a pthread of its own. I also kept getting
> excep
On Sat, Apr 11, 2009 at 4:45 PM, James Maxwell
wrote:
> hmm... Well, this all sounds like a sledge-hammer approach to my immediate
> problem.
>
> The actual explanation of what I'm doing is kind of long-winded, so I'll
> spare you that. For now, I know the calculated values will always come out
>
oh, geez... Okay, you guys made your point! ;-)
One thing I love about this list; I *always* get useful info.
I'll find a better way to do this soon. In this particular case, the
"match" could be specified as broadly as any value falling within a
sort of "bin." The "bottoms" of each of these
[NSThread detachNewThreadSelector:@selector(threadMethod:) toTarget:self
withObject:@selector(myMethod)];
-(void)threadMethod:(id)anObject
{
NSAutoreleasePool*pool = [[NSAutoreleasePool alloc] init];
SEL comp = (SEL)anObject;
... Do stuff ...
[self performSelecto
On Apr 11, 2009, at 5:20 PM, Trygve Inda wrote:
-(void)threadMethod:(id)anObject
{
NSAutoreleasePool*pool = [[NSAutoreleasePool alloc] init];
SEL comp = (SEL)anObject;
... Do stuff ...
[self performSelectorOnMainThread:comp withObject:nil
waitUntilDone:NO];
[pool
> On Apr 11, 2009, at 5:20 PM, Trygve Inda wrote:
>> -(void)threadMethod:(id)anObject
>> {
>> NSAutoreleasePool*pool = [[NSAutoreleasePool alloc] init];
>> SEL comp = (SEL)anObject;
>>
>>... Do stuff ...
>>
>> [self performSelectorOnMainThread:comp withObject:nil
>> w
On Apr 11, 2009, at 5:32 PM, Trygve Inda wrote:
So one of these needs to be called:
[self performSelectorOnMainThread:@selector(cacheComplete)
withObject:nil
waitUntilDone:NO];
[self performSelectorOnMainThread:@selector(initComlete)
withObject:nil
waitUntilDone:NO];
Thoughts?
On Apr
2009/4/11 Trygve Inda
I have a thread. Depending on how it is called, I need to do something
> different at the end of the main processing so I wanted to pass a selector
> into the thread so it could call it when it was ready.
>
> I could just pass an NSNumber and do case1, case2 etc, but thought
> 2009/4/11 Trygve Inda
>
> I have a thread. Depending on how it is called, I need to do something
>> different at the end of the main processing so I wanted to pass a selector
>> into the thread so it could call it when it was ready.
>>
>> I could just pass an NSNumber and do case1, case2 etc,
>> It does not seem I can invoke this on the main thread.
> An NSInvocation?
>> Basically I just need to use a function pointer. How does Cocoa do
>> this?
>>
>> I need to pass either someMethod or someOtherMethod and later call
>> it with
>>
>> [self performSelectorOnMainThread:theMethod withO
Sigh. Hit shift-cmd-D a bit too soon. :)
It does not seem I can invoke this on the main thread.
An NSInvocation?
[invocation performSelectorOnMainThread: @selector(invokeWithTarget:)
withObject: ...whatever... waitUntilDone: NO];
Basically I just need to use a function pointer. How does C
Hello,
It seems that NSWorkspace.openURL() is not launching my default application.
For example, if I try use openURL to open http://www.nhl.com,
Safari/Firefox/etc will not launch and ultimately fail to load the url.
However, if Safari/Firefox is already running, it will open the url in a new
win
On Sat, Apr 11, 2009 at 7:47 PM, James Maxwell
wrote:
> oh, geez... Okay, you guys made your point! ;-)
>
> One thing I love about this list; I *always* get useful info.
>
> I'll find a better way to do this soon. In this particular case, the "match"
> could be specified as broadly as any value fa
2009/4/11 Trygve Inda :
> [NSThread detachNewThreadSelector:@selector(threadMethod:) toTarget:self
> withObject:@selector(myMethod)];
This should have produced a warning like this:
warning: passing argument 3 of
‘detachNewThreadSelector:toTarget:withObject:’ from incompatible
pointer type
If it
Hi all,
My app receives strings from a web service that look like
"everything_else" (no quotes) I would like to convert these strings to
"Everything Else". My initial attempts were going to be using a loop
through the string inspecting it for occurances but I think that will
make the application s
On Apr 11, 2009, at 11:35 PM, Devraj Mukherjee wrote:
My app receives strings from a web service that look like
"everything_else" (no quotes) I would like to convert these strings to
"Everything Else". My initial attempts were going to be using a loop
through the string inspecting it for occuranc
Cocoa has always been lacking in the RegEx department (at least the
'built-in' Cocoa classes, there's a bunch of third-party regex
frameworks), especially when compared to languages like Python. Since
your situation isn't very complex, I would just use the bread-n-butter
string APIs:
NSString *ori
That did it, adding
[[ self openGLContext ] flushBuffer ];
To the end of getFrameForTime: did the trick.
Thanks.
On 12/04/2009, at 03:13 , Michael Ash wrote:
On Sat, Apr 11, 2009 at 2:20 AM, Brian Bruinewoud
wrote:
Ok. That "works". I was coming from an NSOpenGLView example where
the view
35 matches
Mail list logo