My managed classes need non-standard persistent attributes, such as CGPoint.
Possibly, I'll need other C structs or enums as well.
The Core Data Programming Guide section about non-standard persistent
attributes
(link below) says there are two ways to go about this: transformable attributes
On Mon, November 30, 2009 2:53:08 PM, Ricky Sharp rsh...@mac.com wrote:
On Nov 29, 2009, at 9:52 AM, glenn andreas wrote:
On Nov 29, 2009, at 9:38 AM, Symadept wrote:
How can I scale my button or Label to be able to accomodate the localized
string?
That's the whole purpose of being able to
On Thu, February 25, 2010 7:37:17 AM Alexander Bokovikov openwo...@uralweb.ru
wrote:
I don't understand what is the problem. Isn't my 422/674 ratio not a
constant?
What is a principal difference between it and yours 4/3? Just substitute my
digits
to whatever you need. You'll get just the
Hi Ian,
When you speak of a setup wizard, I think of those Windows-based apps with the
Next and Back buttons. In my opinion, those wizards are very Windows-like, and
therefore, annoying. ;)
Have you considered displaying a regular dialog box that asks for the relevant
information? Unless the
Hi Rick,
It is my limited understanding of core data that you can load as many managed
object *models* as you want into a managed object context to obtain the union
of all those models. You may want to look at the core data command line
tutorial, which shows how to write a non-gui
Hi Ariel,
I'm afraid it's a bit difficult to understand your question. Are you attempting
to insert a full-screen view into the responder chain?
Thanks,
Soong
- Original Message
From: Ariel Feinerman arielfap...@gmail.com
To: Cocoa Development cocoa-dev@lists.apple.com
Sent: Mon,
I believe it will because there will be no pointer to each allocated string
after a new one is allocated. Note that it won't be deallocated immediately. It
will be deallocated when the collector runs.
- Original Message
From: Michael Abendroth pfrc.yao...@googlemail.com
To:
On Mon, January 11, 2010 12:11:34 PM, Quincey Morris
quinceymor...@earthlink.net wrote:
It looks like you should *not* be using NSComboBox for this. A combo box is a
kind of text field, not a kind of menu. It looks like you want menus.
Yeah. Try using a pop-up button instead. That's a kind
On Mon, Jan 4, 2010 at 4:56 PM, David Alter alterconsult...@gmail.com wrote:
Is there a way to lookup what and NString constant is at runtime?
Have you tried
[NSDeviceResolution description]
or
[NSString stringWithString:NSDeviceResolution]
?
Soong
On Mon, January 4, 2010 12:39:22 PM Bill Bumgarner b...@mac.com wrote:
It isn't so much thinking of it as a reference that needs to be nil'd out as
much as it
is a need to properly disconnect a subgraph of objects from the live object
graph in
an application such that the subgraph is
Hi all,
If it is true that the ONLY safe thing you can do in dealloc is release
instance variables, then where else/how else are you supposed to implement a
method that is guaranteed to be called upon an object's termination, so that
you can do final cleanups, such as removing it as an
James,
What exactly is this @defs keyword supposed to do?
-Soong
- Original Message
From: James Pengra pengr...@charter.net
To: cocoa-dev@lists.apple.com
Sent: Sun, November 29, 2009 4:07:11 PM
Subject: Keyword @defs
Consider the following situation I found in a Cocoa program to
,
Soong
- Original Message
From: Jerry Krinock je...@ieee.org
To: Cocoa Developers cocoa-dev@lists.apple.com
Sent: Fri, November 20, 2009 11:07:18 PM
Subject: Re: [SOLVED] CoreData/NSPersistentDocument initialization
On 2009 Nov 20, at 12:04, Oftenwrong Soong wrote:
However
Hi all,
My document model is Core Data based. When a new document is created, I must
initialize the model to contain several objects with default values.
I followed Apple's Departments example:
they're blue and sometimes
they're yellow. I can't explain any of this. If someone can, please enlighten
me!
Thanks,
Soong
- Original Message
From: Oftenwrong Soong oftenwrongso...@yahoo.com
To: cocoa-dev@lists.apple.com
Sent: Fri, November 20, 2009 12:04:06 PM
Subject: CoreData
Hi all,
I have a very common UI layout: a Master/Detail view. The Master is a
NSTableView bound via a NSArrayController to a NSMutableArray, with buttons for
Add and Remove whose Target/Action is the NSArrayController's add and remove
actions. The Detail box displays attributes of the
processing, and then
calls NSArrayController's addObject. For future reference, when you think of
subclassing framework classes, that's a sign that it's time for bed. :)
Thanks,
Soong
- Original Message
From: Oftenwrong Soong oftenwrongso...@yahoo.com
To: cocoa-dev@lists.apple.com
Sent
Hi all,
My app's UI was swapping views into a NSBox (a la Hillegass's book). Now I
decided to replace the NSBox with a NSScrollView. No big difference there. I
only made three changes: In IB, I got rid of the NSBox and dropped a
NSScrollView in its place. In my document controller class, I
Hi all,
In the MVC style, I want to avoid connecting directly between a view and a
model. However I have a custom NSView subclass that renders a graphical view of
the model and therefore it needs information from the model. I think it is
considered bad practice to put a pointer to the model
Hi Ben,
Have you considered the so-called Flyweight design pattern? It is designed to
solve the problem of having a zillion objects to allocate. It sounds like this
pattern might prevent your having to play the dirty tricks that are causing you
problems.
In the frameworks, Flyweight is used,
Hi Ben,
You say the crash occurs in this line:
individuals[individualCount++] = individualsForPop[i];
The problem may be in the post-increment (individualCount++). IIRC, there is no
agreed-upon compiler standard as to whether the post-increment will occur
before or after the assignment.
Hi All,
What is the Cocoa-fied way to communicate via a serial port?
Using a kext to support the Prolific PL2303 chip and a shell utility like cu,
it is possible to communicate via many USB-based serial ports. (For those who
need it, the kext is at sourceforge.net/projects/osx-pl2303.) I am
Thanks Louis... I'm studying the code right now.
-Soong
- Original Message
From: Louis Demers louisdem...@mac.com
To: Oftenwrong Soong oftenwrongso...@yahoo.com
Sent: Thu, October 15, 2009 5:58:02 PM
Subject: Re: Serial comm in Cocoa?
I use 2 C routines I found on the net and adapted
Hi all,
IIUC, what you're saying is that NSPredicate is used as a filter. Is that
correct? If so, is Predicate Editor (in IB) related in some way? And if so,
what is it supposed to do? Honestly I could never understand the docs on this
particular control. :)
Thanks,
Soong
On Sept 29, 2009
Hi All,
In my doc-based app, I need to initially display a startup window instead of a
new empty document. Its function would be somewhat akin to that of the Template
Chooser that comes up when you launch Pages.
I've scoured the texts about the document architecture but cannot find pointers
Hi all,
Why does NSUserDefaults provide method stringForKey but not a method
setString:forKey (akin to setBool:forKey, setFloat:forKey, etc.)? This does not
seem symmetric.
I'm using setObject:forKey when saving a NSString to the defaults database. Is
this correct?
Thanks,
Soong
On Wednesday, August 26, 2009 8:22:24 PM, Brandon Walkin bwal...@gmail.com
wrote:
This can be done completely in IB if you use BWToolkit.
http://brandonwalkin.com/bwtoolkit/
Demo video: http://brandonwalkin.com/blog/videos/iCalSplitView.mov
Brandon
Wow, that is a *really* impressive
Hi all,
I have a window containing a NSSplitView. When the window is resized, both
panes of the split view resize proportionally. I would like one pane to remain
fixed while the other resizes. Xcode does this, as well as iCal and other apps.
Is there a delegate method that does this or must I
Hi all,
My document-based app will use view swapping, allowing the user to navigate
through multiple screens like a wizard of sorts. I am putting each view in a
separate nib and using NSViewController. View swapping is working. Now I need
to make connections between these views and my model.
Hi all,
I have a NSOutlineView. I want to use the small text size (by setting Text
Field Cell Size to Small in Interface Builder).
The disclosure triangle looks proper and is vertically centered in the row.
However the text is too high in the cell. I would like it centered like the
disclosure
Hi all,
I am making a NSDocument based app. In the NIB for the document window, I need
to create a connection to a global data object (think singleton). This
global data is used when creating the document, but isn't part of the
document.
Normally I'd make a connection by dragging a NSObject
31 matches
Mail list logo