Hello All,
I have a large app that uses Carbon. We know that Carbon GUI is not available
in 64-bit.
I need to integrate Carbon and Cocoa so that I can replace the existing Carbon
GUI elements with Cocoa equivalents. Mostly Dialog Boxes, etc.
I know that I need to write C-ACllable Wrapper Funct
That would be a good question for the networking list.
Dave
On Oct 8, 2010, at 7:12 PM, Jeremy Matthews wrote:
> In one of my apps (Cocoa Desktop 10.6+ - not iOS) I need to perform some SRV
> lookups; I know there are a few ways to do this, but I'd like to know if
> anyone can speak from exper
>Date: Fri, 8 Oct 2010 13:47:18 +0200
>From: Remco Poelstra
>Subject: Re: Problem using dictionary
>
>Ah, I should use valueForKeyPath:. Is there a reason valueForKey: is
>documented directly but valueForKeyPath: is not?
First off, this is an extremely common mistake. At least, it's common in
my
On 09/10/2010, at 11:28 AM, Shane wrote:
> I have a document based application with a main window that, when I
> try to resize the window, the window just completely disappears.
One thing to check is that you don't have a maximum size set in IB that happens
to be zero. After a resize it might
Thanks for your answer !
You are right, I haddn't read the docs enough. I read them quickly, then I
started using a sample code as a basis for something else, and I got mixed
up in
what belong to whom (class-wise and logic-wise).
I was probably picturing coredata as more sqlish than it is too.
I t
On Oct 9, 2010, at 3:12 PM, Ariel Feinerman wrote:
> 2010/10/9 Kyle Sluder
>
>>
>> In fact, I can't think of a situation when it *ever* makes sense to
>> type something as id rather than NSObject.
>>
>> Because you can wish to use your own root class, there is difference
> between these. I d
2010/10/9 Kyle Sluder
>
> In fact, I can't think of a situation when it *ever* makes sense to
> type something as id rather than NSObject.
>
> Because you can wish to use your own root class, there is difference
between these. I dont know, but maybe it is why the delegates is always has:
id , it
On Sat, Oct 9, 2010 at 12:07 PM, Shane
wrote:
> Well, to the debugger, I clicked on "show breakpoints", then clicked
> on "Double-Click for symbol" to add [NSWindow close] and also added
> [NSWindow orderOut], but when I ran my app and resized the main
> window, it disappeared without calling eith
> Of course it is. Suppose for a minute that [myMutableDictionary allValues]
> returned a mutable array. That means that you could add to and remove from
> this array with impunity.
>
> Except... the objects in this array are supposed to have an associated key.
> If you remove an object from the
Of course it is. Suppose for a minute that [myMutableDictionary allValues]
returned a mutable array. That means that you could add to and remove from
this array with impunity.
Except... the objects in this array are supposed to have an associated key. If
you remove an object from the array,
On Oct 9, 2010, at 3:06 PM, Trygve Inda wrote:
>> I have an NSMutableDictionary made from a plist with
>> CFPropertyListCreateDeepCopy so that all leaves and containers are mutable.
>>
>> In this plist is an dict whose values I want to move into a mutable array to
>> be displayed and edited in an
On 9 Oct 2010, at 21:06, Trygve Inda wrote:
>> I have an NSMutableDictionary made from a plist with
>> CFPropertyListCreateDeepCopy so that all leaves and containers are mutable.
>>
>> In this plist is an dict whose values I want to move into a mutable array to
>> be displayed and edited in an N
> I have an NSMutableDictionary made from a plist with
> CFPropertyListCreateDeepCopy so that all leaves and containers are mutable.
>
> In this plist is an dict whose values I want to move into a mutable array to
> be displayed and edited in an NSTable.
>
> [myDict allValues] gets the correct ar
Yeah. I was way wrapped around the axle.
This works just fine:
NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle new]
autorelease];
[pStyle setAlignment:NSRightTextAlignment];
m_textRightAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
[NSFont systemFontOfSize:12.0], NSF
I have an NSMutableDictionary made from a plist with
CFPropertyListCreateDeepCopy so that all leaves and containers are mutable.
In this plist is an dict whose values I want to move into a mutable array to
be displayed and edited in an NSTable.
[myDict allValues] gets the correct array and works
On Oct 9, 2010, at 2:30 PM, k...@highrolls.net wrote:
> Is this the correct way to right justify text in an NSTextFieldCell?
I believe you have to invoke -setAlignment: on the cell, not (just) include it
in the attributes.
Regards,
Ken
___
Cocoa-dev
On Oct 9, 2010, at 12:30, k...@highrolls.net wrote:
> m_textAttributes = [NSDictionary dictionary];
> [m_textAttributes setObject:[NSFont systemFontOfSize:12.0]
> forKey:NSFontAttributeName];
> NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle
I was very mistaken.
I now do this:
m_textAttributes = [NSDictionary dictionary];
[m_textAttributes setObject:[NSFont systemFontOfSize:12.0]
forKey:NSFontAttributeName];
NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle new]
autorelease];
[pStyl
On Oct 9, 2010, at 2:05 PM, k...@highrolls.net wrote:
> I want to make a NSDictionary of text attributes to apply to text being
> drawn in a NSTextFieldCell.
>
> This
>
> m_textAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont
> systemFontOfSize:12.0], NSFontAttributeName, NSRi
I have a document based application with a main window that, when I
try to resize the window, the window just completely disappears. The
application doesn't crash and I can open up another window by 'Project
--> New' in the main menu. And of course if I try to resize it, it
I want to make a NSDictionary of text attributes to apply to text
being drawn in a NSTextFieldCell.
This
m_textAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont
systemFontOfSize:12.0], NSFontAttributeName, NSRightTextAlignment,
NSTextAlignment, nil];
gives this error:
e
On Sat, Oct 9, 2010 at 10:38 AM, Ariel Feinerman wrote:
> NSObject *kit;
>> kit = [[kits selectedObjects] objectAtIndex:0];
>>
>
> // it is more convenience
> id kit;
Why would you do this? It is not more convenient. It is actually a
hell of a lot less convenient, because now the co
On Fri, 8 Oct 2010 16:39:05 -0600, Jason Barker
said:
>In my table view, when a user touches a row, I want to change the alpha
>value of a subview within the row's content view via animation as well as
>insert some rows below that one or remove some rows from below that one.
>I'm
>able to animate
On Fri, 8 Oct 2010 13:16:54 -0600, Carter Allen said:
>Hello everyone!
>
>I'm working on cleaning up an app that was written by a colleague of mine
>a while ago, and one of the things that he did quite a bit was use
>"properties" (declared as @properties, with custom getters/setters) that
>are act
On Fri, 8 Oct 2010 00:57:01 -0700, Kyle Sluder
said:
>
>- (id)init {
> if (!(self = [super init]))
>return nil;
>
> // do other initialization
>
> return self;
>}
>
>To my brain, it might as well be required syntax.
Apple has signaled that the canonical form is now in fact:
- (id) init {
NSObject *kit;
>kit = [[kits selectedObjects] objectAtIndex:0];
>
// it is more convenience
id kit;
--
best regards
Ariel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments t
On Oct 9, 2010, at 3:55 AM, Nicolas Berloquin wrote:
> I'm fairly new at using coreData on and I'd like to have some
> clarifications on managedObjects and contexts usage.
Honestly, it seems like you are trying to learn the API without reading the API
docs. For instance, the "Table View Program
On 9 okt 2010, at 07.16, Shane wrote:
>>> I have a document based application with a main window that, when I
>>> try to resize the window, the window just completely disappears. The
>>> application doesn't crash and I can open up another window by 'Project
>>> --> New' in the main menu. And of c
On Fri, Oct 8, 2010 at 8:20 PM, Kyle Sluder wrote:
> On Fri, Oct 8, 2010 at 5:28 PM, Shane
> wrote:
>> I have a document based application with a main window that, when I
>> try to resize the window, the window just completely disappears. The
>> application doesn't crash and I can open up another
Kyle Sluder wrote:
> Just wanted to confirm that this is a repost of the previous thread?
>
> http://lists.apple.com/archives/cocoa-dev/2010/Oct/msg00117.html
>
> --Kyle Sluder
>
> On Tue, Oct 5, 2010 at 2:07 AM, Amy Heavey
> wrote:
>> ...
It is. Notice that it came through on Oct 8, dated O
Hi !
I'm fairly new at using coreData on and I'd like to have some
clarifications on managedObjects and contexts usage.
I have a model where a top entity has a couple to-many relationships, which
each have to-many relationships
to other entities.
something like this :
A
to-many -> B
to-many ->
31 matches
Mail list logo