Why do you think this is a thread safety issue? The
-applicationShouldTerminate: delegate method is called on the main
thread.
It looks more like your path (as retrieved from -tempDirPath) is not a
valid object.
___
Cocoa-dev mailing list (Cocoa-dev@lis
The following code snippet works fine from my main thread.
NSFileManager *tempFileManager = [[NSFileManager alloc] init];
NSString *path= [self tempDirPath];
if(![tempFileManager removeItemAtPath: path error: nil]) {
NSLog(@"failed to remove temp files");
On 16 Nov 2009, at 01:09, Rob Keniger wrote:
>
> On 16/11/2009, at 4:38 AM, Ian Piper wrote:
>
>> I would appreciate it if someone could point me at an example that I could
>> use as the basis for building a categorized list similar to the mail folders
>> display in Mail.
>
> This should help
On Sun, Nov 15, 2009 at 10:39 AM, nyx...@gmail.com wrote:
> If i understood correctly, the function AuthorizationExecuteWithPrivileges()
> executes the given command in a new process.
>
> Is there a way to wait for the created process to terminate ?
No, using AEWP correctly will always create a
If you're sure that no other forked process will exit before the
process spawned by AEWP (generally, a reasonable assumption), you can
simply wait(). Of course, this will block the run loop, preventing any
user interaction from being handled.
See 'man 2 wait'.
_
On Sun, Nov 15, 2009 at 12:04 AM, Pascal Bourguignon
wrote:
> Otherwise, if the question is why there's no market for reusable object
> component, (which was promised by early OO proponents), perhaps it is
> because the OO model is flawed? Or, I would rather thing that the
> _granularity_ of the
On 15/11/2009, at 7:04 PM, Pascal Bourguignon wrote:
> Otherwise, if the question is why there's no market for reusable object
> component, (which was promised by early OO proponents), perhaps it is because
> the OO model is flawed? Or, I would rather thing that the _granularity_ of
> the OO
Hi,
If i understood correctly, the function AuthorizationExecuteWithPrivileges()
executes the given command in a new process.
Is there a way to wait for the created process to terminate ?
Thanks for helping me.
Nyxem.___
Cocoa-dev mailing list (Coc
From: "Sandro Noël"
But where are the ones from apple... that's what i'm wondering,
Why do we have to duplicate work that evidently has already been done.
I'm confused as why apple is not including it in it's development tools.
it makes no sense to me...
If Apple published the sources of its w
Let me try character-art to illustrate the issue (forgive the top-post):
+---+
Title: | |<= splits on spaces only, counts dups
+---+
Label: word count Label:dup count
+---+
Keywords: |
Hello,
I'm trying to perform some simple animations using CA layers on
transparent window and corresponding view. The problem I have is that
every time I turn on the layer backing (either through wantsLayer in
code, or with IB) the view stops being transparent.
I've tried setting layer's
Hello, list. I am a hack programmer, so forgive what is probably an
obvious question. I'm working on a core data document based app that
uses bindings I've created in IB to control a master / detail
interface. Briefly, in XCode's xcdatamodel, there is a Person entity
with a name (String) an
Hi all,
A performance related question:
I've written a Cocoa app that continuously reads data from a USB device and
plots it on a graph. It consists of three of my own classes.
The first class is the model that submits asynchronous bulk reads to the USB
device. The callback for these reads cop
Ha! I just saw that book Amazon a few hours ago, but for some reason didn't
bother looking through the contents. I assumed I need an iPhone book.
Thanks!
On Sun, Nov 15, 2009 at 11:54 PM, Martin Hewitson <
martin.hewit...@aei.mpg.de> wrote:
> Apple's API for Persisting Data on Mac OS X
__
I would grab a copy of
Core Data: Apple's API for Persisting Data on Mac OS X
by Marcus S. Zarra
This book covers syncing core-data apps between Macs and iPhones in some detail.
Cheers,
Martin
On Nov 16, 2009, at 3:49 AM, Karolis Ramanauskas wrote:
> Good evening to everyone,
>
> I'm in a (
Hi,
I want to customize NSTableHeaderView to that extent that
Shall be able to show custom Image in the background.
Shall be able to show the column separator.
Any pointers highly appreciable.
Regards
symadept
___
Cocoa-dev mailing list (Cocoa-dev@lis
I had actually tried using that delegate method. It gets called a lot
because the same controller is delegate to many layers (for drawing). Of
course, I filter it for the my "content" layer. As you noted, using
"sublayers" also triggers for other sublayers and I may have to use your
flag met
On Sun, Nov 15, 2009 at 8:27 PM, Kyle Sluder wrote:
> aLayer.actions = [NSArray arrayWithObject:anAnimation];
Er, this is supposed to be a dictionary, not an array. But you
probably noticed that or would have understood the compiler error.
Sorry 'bout that.
--Kyle Sluder
___
On Sun, Nov 15, 2009 at 6:51 PM, Matt Neuburg wrote:
> Your understanding is likely wrong. :) addAnimation:forKey: on a layer
> triggers the animation then and there. Look at the examples in the Animation
> section of the Core Animation Programming Guide.
To elaborate, the purpose of the key in -
On 2009 Nov 14, at 11:14, SRD wrote:
I'm still not understanding what I'm doing wrong.
- (IBAction) readMenuSelection:(id) sender
{
// sender is NSPopUpButton
NSMenuItem *menuItem = [sender selectedItem];
NSMenu *subMenu = [menuItem submenu];
// s
On Sat, 14 Nov 2009 14:58:31 -0600, Gordon Apple said:
>I assume this should be simple, but so far I haven't found the magic
>incantation, even after reading the docs, Dudley's book, and some archives.
>
>Problem: Layer called "contentLayer" has sublayers containing layer A,
>which is to be t
Good evening to everyone,
I'm in a (extensive) planning stage of a project and an issue of
synchronization is forcing itself on me, I asked a question this morning
about a networking side of things, and I got some info from nice people here
about MYNetwork: http://bitbucket.org/snej/mynetwork/wiki
Hello.
I need a little helper tool to run under privileges and got it to work with
help from the "BLAuthentication" class. However, I'd like to put up a
personalized message when the security server requests the user to enter an
admin password. The BLAuthentication class uses
"AuthorizationExe
On 16/11/2009, at 4:38 AM, Ian Piper wrote:
> I would appreciate it if someone could point me at an example that I could
> use as the basis for building a categorized list similar to the mail folders
> display in Mail.
This should help:
http://developer.apple.com/mac/library/samplecode/Source
On Oct 7, 2009, at 9:57 PM, Wim Lewis wrote:
On Oct 7, 2009, at 1:44 PM, Daniel Ketel wrote:
[...] I must have done something wrong, the application seems to
get confused or I don't know what. The system itself still is
running, but somehow the application is ignoring ANY input, but
sinc
As has been pointed out several times, it's a really bad idea to have
the same-named class in multiple plugins. The Objective-C runtime will
load the first class instance it finds (in your case, in the first-
loaded plugin). For all other plugins, when the class is referenced,
that first cla
Thank you both. I have finally understood what's going on :).
On Nov 15, 2009, at 7:19 AM, Joar Wingfors wrote:
>
> On 14 nov 2009, at 03.20, Michael Ash wrote:
>
>> On Fri, Nov 13, 2009 at 1:28 PM, Paulo Andrade wrote:
>>> Hello,
>>>
>>> I'm using the CPU sampler template.
>>>
>>> Here (htt
On Nov 15, 2009, at 10:38 AM, Ian Piper wrote:
I would appreciate it if someone could point me at an example that I
could use as the basis for building a categorized list similar to
the mail folders display in Mail.
It's a standard outline view, with group rows. See the delegate
methods
This appears to be a bug. I found that whereas calling
[self setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace];
has no effect,
[self setCollectionBehavior:1];
produces the desired behavior. I'll file a radar.
/f
On Sun, Nov 15, 2009 at 7:31 PM, slasktrattena...@gmail.com
wro
Hi all,
I would appreciate it if someone could point me at an example that I could use
as the basis for building a categorized list similar to the mail folders
display in Mail.
I have a data model that has an entity called category and another called item.
These have a one to many relationship
Hi all,
Setting the collection behavior of my (standard) NSWindow to
NSWindowCollectionBehaviorMoveToActiveSpace has no effect whatsoever.
Someone else posted a simple test project a while back demonstrating
the problem:
http://lists.apple.com/archives/cocoa-dev/2009/Oct/msg00647.html
Any ideas?
On 15 Nov 2009, at 14:14, Gabriel Höhener wrote:
> I already could make a cocoa application that works just like I want using
> bonjour (it works with wlan and bluetooth and cable like a charm!). Then I
> thought to develop the same thing for windows and thought that this would be
> as easy...
On Sat, Nov 14, 2009 at 11:35 PM, Ariel Feinerman wrote:
> 2009/11/15 Kyle Sluder
>
>> On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman
>> wrote:
>> > I need two versions of -initWith ... and -set ... methods of custom timer
>> > class (for example, to prevent the circle references);
>>
>> Do no
What you see in Contacts is probably all in a tableHeaderView.
Luke
Sent from my iPhone.
On Nov 15, 2009, at 2:40 AM, Tharindu Madushanka
wrote:
Hi
I am trying to implement a screen in that it should have a table
view, with
add photo button and to right a table view cell. Could I do th
Another plug for Jens Alfke's MyNetworkLibrary... Takes a bit to set up
(detailed in the documentation), but works fine!
It's at:
http://bitbucket.org/snej/mynetwork/
John
On 2009-11-15, at 9:40 AM, Karolis Ramanauskas wrote:
> Good day,
>
> Does anyone here have pointers on how to implement
Good day,
Does anyone here have pointers on how to implement syncing of my iphone
application with the desktop version. I am interested in the way "Things" on
iPhone does it, for example: http://bit.ly/OrLhi. They use wi-fi. The
biggest problem I have digging up any information is that looking for
On 15 Nov 2009, at 11:36 AM, Motti Shneor wrote:
Thanks, but the bundleWithIdentifier has its own problems.
1. The identifier is (as far as i know) accessible only from the
bundle itself, which I don't have! I'm circling around here, without
access to my own resources! Must I hard-code t
Hello folks
I already could make a cocoa application that works just like I want
using bonjour (it works with wlan and bluetooth and cable like a
charm!). Then I thought to develop the same thing for windows and
thought that this would be as easy... no way! It's a nightmare!!!
Has anybody an
On Nov 14, 2009, at 8:40 PM, Dave DeLong wrote:
> There are a bunch of freely available frameworks that have UI elements like
> that, such as BWToolkit, BGHudAppKit, AmberFramework, iLife Controls,
> HMBlkAppKit, and more.
>
> Here's a decent list: http://cocoaheads.byu.edu/resources/user-int
Thanks, but the bundleWithIdentifier has its own problems.
1. The identifier is (as far as i know) accessible only from the bundle itself,
which I don't have! I'm circling around here, without access to my own
resources! Must I hard-code the bundle identifier as a string constant within
each o
Hi
I am trying to implement a screen in that it should have a table view, with
add photo button and to right a table view cell. Could I do this with a
single table view ? Can anyone point some way to do it. Like in contacts app
Thank you,
Tharindu
___
41 matches
Mail list logo