I have an instance of NSData is created using dataWithContentsOfMappedFile: and
then written to a different file using writeToFile:atomically:. In many cases
there are no calls that would cause the file to be read in between those two
operations.
In those cases does the entire file get read int
I'd like to create a toolbar item similar to the "Mount/Unmount" item in
DiskUtility. Depending on the context the label will be set to a value
describing the action. For DiskUtility it is "Mount" or "Unmount".
This is easy enough, the problem is that the different label lengths cause the
toolb
I'm curious about what patterns exist for binding to nested sets of preferences
such as a dictionary value at the top level of the user defaults. I've seen a
couple of questions similar to this, but no one appears to have received the
definitive answer.
My scenario is that I have an application
Ah, it looks like I'm in good company :)
Thanks for the references!
-Andy
-Original Message-
From: Andy Lee [mailto:ag...@mac.com]
Sent: Wednesday, February 25, 2009 9:16 AM
To: Andy Klepack
Cc: Cocoa-dev@lists.apple.com
Subject: Re: Subclassing with more restrictive initializers
I've run up against this situation more than once and I'd be interested in any
opinions and best-practices out there.
I have a class that has one or more initializers that accept parameters. The
class also has behavior.
I want to implement a second class that has the behavior of the first in
a
lists.apple.com
Subject: RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)
> Has anyone had any luck implementing a dynamic sdef using a plugin model?
> Nothing fancy, targeting 10.5+, I haven't
> been able to locate any examples of this actually being done or documentation
&g
Has anyone had any luck implementing a dynamic sdef using a plugin model?
Nothing fancy, targeting 10.5+, I haven't been able to locate any examples of
this actually being done or documentation on how to do it.
The 10.5 scripting release notes
(http://developer.apple.com/ReleaseNotes/Cocoa/Fou
What I've always done is to have that block in code like
#ifdef RELEASE
{ ... code ... }
#endif
and then, in the build configuration of either the project or target, I select
the Release configuration and add the pre processor macro "RELEASE". I forget
the setting name exactley, but it's along
I have an NSSlider and while the drag is in progress I would like to display
the value in a text field. When the drag completes I would like the new value
to get set in the user preferences and an action executed.
As far as I can tell I'll have to set the slider to send its action continually
i
Are you calling performSelectorOnMainThread:withObject:waitUntilDone:modes on
every iteration of the tight loop? That seems like it could be terribly
expensive. What if you throttle it back to every X (ten, hundred, thousand,
etc) iterations? My speculation would be you're overwhelming your rece
d if I can come
up with one mechanism under the hood and provide whichever variant I need.
I am able to target Leopard and above.
-Andy
-Original Message-
From: Kyle Sluder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2008 4:44 PM
To: Andy Klepack
Cc: cocoa-dev@lists.apple.com
S
I have a subclass of NSObject that provides its own designated initializer that
allows client code to configure an instance with initial values. Instances of
the class itself are immutable. At the same time, instances where no initial
values are supplied do not make conceptual sense.
I'm wonder
I have several methods for which I'd like to provide asynchronous and
synchronous variants. These methods are not simple operations and have non-void
return values. Is there a good model to follow in implementing this? I don't
recall ever seeing a technique for this in any of the Cocoa documenta
day, March 17, 2008 12:35 PM
To: Andy Klepack
Cc: cocoa-dev@lists.apple.com
Subject: Re: Apple Events and automatic AutoReleasePool managment
On 17 Mar '08, at 11:38 AM, Andy Klepack wrote:
> Does an 'event cycle' then include anything dispatched from a run
> loop source? For
The Memory Management Programming Guide
(http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/AutoreleasePools.html#//apple_ref/doc/uid/2047)
states "The Application Kit automatically creates a pool at the beginning of
an event cycle (or event-loop iteration), such a
15 matches
Mail list logo