Hello,
I have a need to manually encode and decode double values archived using a
NSKeyedArchiver. I can't use encodeDouble/decodeDouble in this case because of
truly terrible performance in some previous releases of Mac OS (not sure if
that's still the case in 10.6).
This worked well so fa
Is that really the code? you're removing the object for the key myDict but that
isnt the key, its the object for key myOldKey. Are you sure the
removeObjectForKey doesn't really have the parameter myOldKey?
You dont say what the crash is but you're not retaining the object myDict you
remove fro
On Sep 28, 2010, at 22:48, Trygve Inda wrote:
>[myObject removeObjectForKey:myDict];
Shouldn't that be:
[myObject removeObjectForKey:myOldKey];
?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests o
I am getting a crash after calling synchronize. I am trying to change the
key associated with an object as follows:
myDict = [myObject objectForKey:myOldKey];
if (myDict)
{
[myObject removeObjectForKey:myDict];
[myObject setValue:myDict forKey:myNewKey];
[[NSUserDefaults standardUser
A client has provided 4 fonts they would like me to use in their iPad app.
These fonts are all from the same family, just with different line weights.
(light, normal, bold, etc). They are *.otf files. I have added them to the
project, and listed them in info.plist.
I put together a quick te
On Sep 28, 2010, at 1:23 PM, Oleg Krupnov wrote:
> So, let's assume I create the connection in this way:
>
> NSConnection* connection = [NSConnection connectionWithReceivePort:nil
> sendPort:[[NSMachBootstrapServer sharedInstance] portForName:@"foo"]];
>
> or even
>
> NSConnection* connection =
On Sep 28, 2010, at 6:10 PM, Dave Carrigan wrote:
> Objective-C != Objective-C++
>
> And it is a reserved word in Objective-C++.
I know; I was just wondering if there was a workaround that would tell the
ObjC++ compiler to treat the property as if it was in ObjC (where it is not a
reserved wo
On Sep 28, 2010, at 4:19 PM, Nick Zitzmann wrote:
> @property(assign,getter=isPrivate) BOOL private;
What about trying
@property(assign) BOOL isPrivate;
?
Rob
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
On Sep 28, 2010, at 4:57 PM, Nick Zitzmann wrote:
>
> On Sep 28, 2010, at 5:51 PM, Ricky Sharp wrote:
>
>> Why do you need to use the exact name of "private"?
>
> Because the object in question has a "private" state.
>
>> You should never name things using reserved words.
>
> But it's not a
On Sep 28, 2010, at 6:07 PM, Greg Parker wrote:
>> How do I create a property for a class named "private" and not have the
>> Objective-C++ compiler trip on it?
>
> You can't. C++ reserved words are unavailable for use in Objective-C++. The
> only exception is in method names.
Okay, thank you
On Sep 28, 2010, at 4:19 PM, Nick Zitzmann wrote:
> Okay, I tried searching, and didn't find anything pertinent...
>
> How do I create a property for a class named "private" and not have the
> Objective-C++ compiler trip on it?
You can't. C++ reserved words are unavailable for use in Objective-C
On Sep 28, 2010, at 5:51 PM, Ricky Sharp wrote:
> Why do you need to use the exact name of "private"?
Because the object in question has a "private" state.
> You should never name things using reserved words.
But it's not a reserved word in Objective-C. "@private" is, "private" is not.
Nick
On Sep 28, 2010, at 6:19 PM, Nick Zitzmann wrote:
> Okay, I tried searching, and didn't find anything pertinent...
>
> How do I create a property for a class named "private" and not have the
> Objective-C++ compiler trip on it?
>
> Here's what I first tried:
>
> @property(assign,getter=isPriv
Okay, I tried searching, and didn't find anything pertinent...
How do I create a property for a class named "private" and not have the
Objective-C++ compiler trip on it?
Here's what I first tried:
@property(assign,getter=isPrivate) BOOL private;
That @property declaration works just fine when
Greetings,
CocoaHeads is an international Mac programmer's group. Meetings are free and
open to the public. We specialize in Cocoa, but everything Mac programming
related is welcome.
Canada
Toronto, Ontario - Tuesday, October 12, 2010 18:30
France
Bordeaux - Thursday, October 28, 2010 18:00
G
Take a look at panel:shouldShowFilename:
On Sep 28, 2010, at 1:14 PM, Dave DeLong wrote:
> Hi everyone,
>
> I'm using NSOpenPanel, and I'd like the ability to disable files and folders
> under certain conditions (for example if a file is on an external drive
> versus the boot volume). 10.6 i
>> I am trying to understand the right way of dealing with a "settings" window
>> in my application. I have a "Camera" object that wraps a Firewire video
>> camera. I would like to bring up an NSPanel that enables various settings of
>> the camera to be modified. I do not need to override any pa
Hi everyone,
I'm using NSOpenPanel, and I'd like the ability to disable files and folders
under certain conditions (for example if a file is on an external drive versus
the boot volume). 10.6 introduced a delegate method called
"panel:shouldEnableURL:" which would be perfect, but I need a
Leo
On Sep 28, 2010, at 10:47 AM, Shawn Bakhtiar wrote:
> Question, why not just derive the camera class from NSWindow?
A camera is not a different kind of window. The only significant reason to
subclass NSWindow is to create a new kind of window - not a window for a
specific task.
> There is no
On Sep 28, 2010, at 11:34, Jim Thomason wrote:
>[self addTrackingArea:
>[[[NSTrackingArea alloc]
>initWithRect:NSMakeRect(100, 100, 50, 50)
> options:NSTrackingActiveInKeyWindow
> | NSTrackingMouseEnteredAndExited |
> NSTrackingMouseMoved
I'm utterly confused by what I thought would be something simple.
I have a custom view that I want to establish a few tracking areas
for. So I go and create several NSTrackingAreas and add them to the
view. All looks well. But later on, when my mouse events fire off,
they're associated with the EN
Ken,
So, let's assume I create the connection in this way:
NSConnection* connection = [NSConnection connectionWithReceivePort:nil
sendPort:[[NSMachBootstrapServer sharedInstance] portForName:@"foo"]];
or even
NSConnection* connection = [NSConnection
connectionWithReceivePort:[NSMachPort port] s
On Sep 28, 2010, at 10:41, Jonny Taylor wrote:
> I am trying to understand the right way of dealing with a "settings" window
> in my application. I have a "Camera" object that wraps a Firewire video
> camera. I would like to bring up an NSPanel that enables various settings of
> the camera to b
NSWindowController is for when you want to have multiple windows of the same
class (derived from NSWindow), but have different set of callbacks, in
different Window controllers that you can attach to each identical NSWindow, in
essence giving you a window class, that can have a different set of
I am trying to understand the right way of dealing with a "settings" window in
my application. I have a "Camera" object that wraps a Firewire video camera. I
would like to bring up an NSPanel that enables various settings of the camera
to be modified. I do not need to override any particular beh
On Sep 28, 2010, at 2:29 AM, Oleg Krupnov wrote:
> Thanks Ken,
You're welcome. I'm glad to help.
> 1. What happens when I call -connectionForProxy on the client proxy
> object? Is a new connection created? Or the root vended object's
> connection can be reused? In the latter case if I remove t
Thanks Ken,
I tried this:
> Your clients (each thread is a separate client, if you like) should be
> checking in with the server by invoking a specific method on the root proxy.
> They should be passing some object representing themselves to the server. On
> the server side, the check-in met
27 matches
Mail list logo