Is PackageMaker suitable for over-writing files of an existing
install? It's got authentication built in.
If that's not an option, I would recommend the crash course: http://
developer.apple.com/samplecode/BetterAuthorizationSample/index.html
Also a question: does anyone know of a Cocoa/obj-
On Thu, May 22, 2008 at 12:08 PM, Joseph Kelly <[EMAIL PROTECTED]>
wrote:
Also a question: does anyone know of a Cocoa/obj-C wrapper around
auth-framework? It might be a useful sort of project/tool ;-)
I don't know what is meant by "auth-framework", but...
If you've got complaints or suggestions for Documentation, then go to
http://bugreport.apple.com/ and file a bug. Apple seems intent on
working with these kinds of suggestions, esp. if they help newcomers
transition to the platform.
Sincerely,
Joe K.
___
Toggle the release when closed setting on the window nib? See the docs
for -[NSWindow setReleasedWhenClosed:]
Joe K.
On Jun 9, 2008, at 10:30 PM, James W. Walker wrote:
On Jun 9, 2008, at 9:18 PM, Andrew Farmer wrote:
On 09 Jun 08, at 21:03, James W. Walker wrote:
I'm getting an access v
Would it be easy to re-factor your usb stuff to run on a separate
thread? In my mind, that's clearly the most robust solution.
Joe K.
On Apr 14, 2006, at 5:50 PM, John Goodman wrote:
I have a timer than needs to fire while the user drags an NSSlider.
I have seen solutions that use the NSRun
I am subclassing CALayer, and overriding -drawInContext: to perform my
drawing.
I'm noticing that whenever my -drawInContext gets called (in response
to calling -setNeedsDisplay) that there appears to be an actual
animated fade-out / fade-in of of the old content and the new content.
I d
On Jul 31, 2008, at 11:07 AM, Jens Alfke wrote:
The content of a layer is an animatable property, so by default,
changing the content will do a crossfade. It seems that applies to
custom content (drawn by -drawInContext:) as well as the "content"
property.
There are a couple ways to supp
The only time you're sharing data across threads is via -
performSelectorOnMainThread:... which itself is thread safe.
So the main thing you have to work through is the memory management of
the data which XMLFetcherParser is passing to the -receiveItem: method
on the main thread. The convent
sed object in the worker thread AFTER you send it to
the main thread, you should be all good.
Joe K.
On Jul 31, 2008, at 4:14 PM, Joseph Kelly wrote:
The only time you're sharing data across threads is via -
performSelectorOnMainThread:... which itself is thread safe.
So the main th
Hello,
is there a known reliable way to generate a back trace from the
current point in a given thread's call stack? Like some kind of:
+(NSString*)getCurrentStackTraceInCRDelimitedString;
That would be pretty cool.
Thanks in advance!
Joe K.
___
On Aug 20, 2008, at 7:25 AM, Charlie Dickman wrote:
I have an app that contains multiple NSView's which are all visible
at the same time. They are all sub-classes of NSView but not of any
of the others. Each has its initialize, initWithRect and drawRect
methods invoked as it should.
With
On Aug 20, 2008, at 8:19 AM, Charlie Dickman wrote:
"view" is an NSView and method is not spelled wrong. As I said, I
can call it just fine with [view performSelector at run-time.
And the method you are calling is declared in NSView.h?
If the method is your own method declared in a subclass
Hello,
I am creating NSDateFormatter programmatically, and I wish to parse
any type of date string within the user's locale -- for instance
"03/13/08" or "1:30PM March 13, 2008" would both be acceptable.
Unfortunately, NSDateFormatter seems to parse only one specific format
at a time. I w
You have no guarantee that a method like -initWithContentsOfFile: is not going
to add many allocations to the autorelease pool (which probably exists at your
top runloop). In my code, in places that sit in tight processing loops, I've
had to create an autorelease pool at the top of the loop whic
How is your mainThreadParm declared? If it's a file global scope non-
pointer value, it could be getting optimized away.
Try declaring it static or volatile.
Also, if threads are changing mainThreadParm independently in non-
atomic ways, you will want to put locks around the critical sections.
From what I can tell, clicking the button is not setting
mainThreadParm = kStopped. Set a breakpoint in your action method to
verify. Since (I assume) mainThreadParm is a member variable of your
Controller class instance (and therefore accessible to all object
methods of the class) it won't
Why can't your thread just return when it's finished?
On Nov 24, 2008, at 1:02 AM, Mahaboob wrote:
Hi,
I’m developing an application for sending email. This allows the
user to
restrict,
1. Number of emails to be send simultaneously and
2. Time between emails in seconds.
So I used a thread t
On Nov 25, 2008, at 1:17 AM, Mahaboob wrote:
On 11/25/08 2:33 PM, "Mahaboob" <[EMAIL PROTECTED]> wrote:
On 11/24/08 10:01 PM, "Joseph Kelly" <[EMAIL PROTECTED]> wrote:
Why can't your thread just return when it's finished?
I'm new to thr
I would recommend at the very least that you test on a PPC and an
Intel machine, for each os version you plan on supporting.
Additionally, our QA has a couple of towers, an iBook, a MacBook, and
a couple of iMacs. I think QA partitions each drive for a specific OS
(10.4.n, 10.5.m, where n
Go back in your email and look for the last message I sent in response
to your threading issues.
You can in fact use an instance variable to tell a worker thread to
quit (I do it all the time for very simple threads), and the fact that
you're setting the variable and yet you do not see the
I mean KVC... bleah...
On Nov 28, 2008, at 13:00, Joseph Kelly <[EMAIL PROTECTED]> wrote:
Go back in your email and look for the last message I sent in
response to your threading issues.
You can in fact use an instance variable to tell a worker thread to
quit (I do it all the ti
On Dec 3, 2008, at 9:06 AM, Randall Meadows wrote:
On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote:
Namaste!
In my application, when I choose File->Quit, the application
appears to
terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left
unreleased.
Is there a handy way to determ
You could call [self myThread:nil] after you start your timer.
Joe K.
On Dec 4, 2008, at 3:17 AM, Mahaboob wrote:
Hi,
I need to fire the thread repeatedly in regular time intervals. So I
used
the timer like:
timer = [[NSTimer scheduledTimerWithTimeInterval:(double)
[txtTimeinterval
doub
I've used both the CF and NS timer apis in many different situations
without a hitch. They're fairly reliable. Perhaps you could explain
your "can't use a runloop" restriction -- e.g. if you are writing a
daemon or a kext, this is not the list you want to post to.
You might find if you refa
On Dec 4, 2008, at 7:14 AM, Påhl Melin wrote:
I'm very happy with the messaging framework and would like to use it
on Mac OS X as well. Run loops are not compatible with this approach
since my threads need to run forever or block in my framework when
they are waiting for messages (the timers ar
On Mar 15, 2009, at 12:18 PM, Tommy Nordgren wrote:
You can write your implementation file in Objective C++ , and use
std::map
That was my first case, but I just wanted to make sure: I've run some
tests, and std::map outperforms NSMutableDictionary as described,
until around n = 10^6,
You'll most likely want to put your MIDI stuff on a worker thread, and
add synchronization around any data that could possibly be shared
between threads.
http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/Introduction/Introduction.html
It's non-trivial work if you are u
27 matches
Mail list logo