, Etienne Guérard wrote:
I started an AP use NSTask in my project ,when I loaded this AP,
thread count will be increased ,after sending apple event to AP ,
and AP will exit, but thread count can't decrease. If I used this
method load AP more times, thread count will increased
NSTask* theTask = [NSTask
launchedTaskWithLaunchPath:excuPath arguments:[NSArray
arrayWithObjects:arg1,nil]]; end, a thread will added until main
thread exit.
---
Best Regards,
Xianyu
On Dec 10, 2008, at 5:46 PM, Etienne Guérard wrote:
Hi,
On Dec 10
I started an AP use NSTask in my project ,when I loaded this AP,
thread count will be increased ,after sending apple event to AP ,
and AP will exit, but thread count can't decrease. If I used this
method load AP more times, thread count will increased, but there
was no problem on tiger,
Did you look at -[NSScreen visibleFrame]?
The returned rectangle is always based on the current user-interface settings
and does not include the area currently occupied by the dock and menu bar.
Because it is based on the current user -interface settings, the returned
rectangle can change
The __CFXNotificationSendToServer symbol in the call stack means that you have
an NSNotification somewhere in your code that cause some plist serialization.
This is were I would look for trashed objects.
Some of your code function might not appear in a call stack for optimization
reason.
Also
See http://homepage.mac.com/chris_campbell/blog/SystemVersionCheck-1.1.html for
a discussion and a solution to this problem.
EG
-Original Message-
While it is not my intention to support previous versions of Mac OS,
I'd like my users be informed politely that the latest OS version is
Try the following instead:
3: I call from another controller with the following:
NSApplication* app = [NSApplication sharedApplication];
[self application:app /* or NSApp */ openFileWithoutUI: totalFile];
EG
-Original Message-
3: I call from another controller with the following:
Did you mean a cast to (CFDataRef) ?
-Original Message-
CFDataRef faxMsgData = (NSData *)[[self.faxHistoryItemDict
objectForKey:@msg] dataUsingEncoding: NSUTF8StringEncoding];
I get the same warning with/without the (NSData *) cast.
You might want to do it this way:
- (void)createDirectoryRecursivelyAtPath:(NSString *)path
{
//check if the dir just above exists...
NSFileManager *fileManager = [NSFileManager defaultManager];
BOOL isDir;
NSString *directoryAbove = [path
It might be that your application doesn't use NSApplicationMain() as the
program starting point.
This function is responsible for initializing stuff and loading the main
bundle's main nib file as specified in the Info.plist file.
EG
-Original Message-
From: [EMAIL PROTECTED]
NSApplicationMain basically does the following:
[NSApplication sharedApplication];
[[NSBundle mainBundle] loadNibNamed:[[NSBundle mainBundle]
objectForInfoDictionaryKey:@NSMainNibFile] owner:NSApp];
[NSApp run];
EG
-Original Message-
It might be that your application doesn't use
You should derive your classes from NSObject, not from Object.
You normally don't have to #include objc/Object.h.
Where did you find such an example?
The alloc method basically does a calloc of the appropriate instance size.
The init method of NSObject does nothing.
It's good practive to always
de Haan
Date: mar. 11/11/2008 19:32
À: cocoa-dev@lists.apple.com
Objet : Re: RE : a newbie question
On Nov 11, 2008, at 9:21 AM, Etienne Guérard wrote:
You should derive your classes from NSObject, not from Object.
You normally don't have to #include objc/Object.h.
Where did you find
You should use the highlighting provided by the focus ring.
-[NSView setFocusRinType:]
Message d'origine
I have a custom NSView subclass that contains, among other things, an
NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I
Did you take a look at IconServices GetIconRef() function using one of the
generic Finder icons constant?
Message d'origine
De: [EMAIL PROTECTED] de la part de Iceberg-Dev
Date: mar. 11/11/2008 17:36
À: cocoa-dev@lists.apple.com
Objet : How are we supposed to retrieve the
You need to build QuickLite against the 10.4 SDK too.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: vendredi 7 novembre 2008 09:52
To: cocoa-dev@lists.apple.com
Subject: Link error: _open$UNIX2003
I have developed a database
16 matches
Mail list logo