happens on the godPhone).
--Graham
On 27/09/2009, at 1:12 PM, Erg Consultant wrote:
When I drag a bunch of frameworks from one Xcode project to another, their
names are listed in red in the destination project. I know they exist because
the original project works fine and I can do a Reveal
When I drag a bunch of frameworks from one Xcode project to another, their
names are listed in red in the destination project. I know they exist because
the original project works fine and I can do a Reveal In Finder to verify
that they exist? The project being dragged *to* however crashes on
Does anyone make a GUI version of bin2c for OS X?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at
When i rotate my view 90 degrees, some of the touches I receive give weird
coordinates that appear to be incorrect. Do I need to apply a transform to the
touch input matrix as well as the view when I rotate it?
Thanks,
Erg
___
Cocoa-dev
Is there a simple way to rotate a UIView without applying a transform? I have a
single UIViewController and nib file which has one view in landscape
orientation with a single image in it. When I run my app, the view appears but
in portrait mode which cuts off the right side of the view. I just
I am trying to parse an XML file on the web using NSXMLParser. The page is a
list of gold prices. I can get the tagged elements with no problem, but the
price item doesn't seem to be tagged. Can anyone tell me how to get the price
item in this element using NSXMLParser:
Price
I suddenly started getting a weird loader crash when launching my app. Has
anyone seen any errors similar to this one:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x
Crashed Thread: 0
Thread 0 Crashed:
0 ???
I need to launch and execute a task via NSTask and then immediately get both
notification that it launched, and it's launched pid.
I tried the notification mechanism but it requires that I first return from my
launch function and let the even loop run in order to receive the notification.
If
I forgot to mention that the problem case is exceptional: the problem I have is
only in the case of an Intel version of the app trying to launch a PPC-only
child the first time after reboot: -launch returns immediately, and isRunning
returns YES, but there is like a 3 second delay between the
@lists.apple.com
Sent: Tuesday, June 9, 2009 9:43:51 AM
Subject: Re: [NSTask] -launch return
Erg Consultant wrote:
[ launchTask launch ];
// Wait 'til is running...
while( ![ launchTask isRunning
As I mentioned, in the case of same-architecture launches, everything works.
In the case of Intel launching PPC, -launch returns immediately and -isRunning
says it's running (if I step over in the debugger for example). However, in
reality in the case of Intel launching PPC, as I mentioned,
I later monitor the pid that I squirreled away from within a periodic timer:
err = GetProcessForPID( pid, psn );
If GetProcessForPID returns an error, I know the process is not running.
Erg
From: Scott Ribe scott_r...@killerbytes.com
To: Erg Consultant
, 2009 8:09:09 PM
Subject: Re: [NSTask] -launch return
Erg Consultant wrote:
The Rosetta startup delay is significant because my PPC-only child can't run
until Rosetta is running - and it appears to not be running until the 1st PPC
program since reboot has been run.
Launch a dummy child
I just opted for #2 #3.
Erg
From: Greg Guerin glgue...@amug.org
To: list-cocoa-dev cocoa-dev@lists.apple.com
Sent: Tuesday, June 9, 2009 8:37:22 PM
Subject: Re: [NSTask] -launch return
Erg Consultant wrote:
I find it absolutely appalling on a modern OS
Pulis tooth...@fastq.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Tuesday, June 9, 2009 9:38:04 PM
Subject: Re: [NSTask] -launch return
On Jun 9, 2009, at 8:16 PM, Erg Consultant wrote:
I find it absolutely appalling on a modern OS that I should have
Ok so more specifically I should have asked:
How do I get the NSSplitView to restore the divider position when my app
relaunches the next time?
I set the autosave name but when I drag the splitter, then quit and relaunch,
it's still in the default position, not the position it was in when I
I have a custom icon in a .tiff that I draw next to my cells in an
NSOutlineView table.
Everything works fine until I turn on
NSTableViewSelectionHighlightStyleSourceList:
[ registryOutlineView
setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList ];
When I do that the
6:19:13 AM
Subject: Re: [ NSSplitview ] -setAutosaveName
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
What does setAutosaveName actually do? I assume it saves the position of the
splitview to user defaults?
The behavior is documented, succinctly, here:
http
Because that is how code posted in the archives says to do it.
If I use NSImageCell or NSTextFieldCell (which I've tried), the icons never
show up. Those work for NSTableView icons but not NSOutlineView icons.
From: Kyle Sluder kyle.slu...@gmail.com
To: Erg
] archiveRootObject:toFile: hoses my
directory's permissions
On Sat, May 30, 2009 at 1:39 AM, Erg Consultant erg_consult...@yahoo.com
wrote:
Why does archiveRootObject:toFile: change the permissions on the parent
directory? I didn't ask it to. This dir has to be writable for all users -
the way
What does setAutosaveName actually do? I assume it saves the position of the
splitview to user defaults? If so, how does one retrieve that value?
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
I don't see any methods such as NSSearchPathForDirectoriesInDomains() for
getting the localized name of the /Users/Shared directory. Is there one?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
Consultant erg_consult...@yahoo.com
Cc: Chris Parker c...@apple.com; cocoa-dev@lists.apple.com
Sent: Friday, May 29, 2009 3:52:45 PM
Subject: Re: Getting localized /Users/Shared Dir Name
On 29 May 2009, at 3:49 PM, Erg Consultant wrote:
I don't see any methods
How can I get the full path to the Users/Shared dir and the dir's localized
name?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
I have an app I install with PackageMaker setting the permissions on the
staging dirs to root/admin as mentioned in the Apple docs so that the app gets
installed with permissions for any user.
I also install an empty dir with full rwxrwxrwx permissions - this is a data
dir that my app will use
Is there a way to hide a GUI app's icon in the process/switch list as can be
done for faceless background apps?
I've tried several of the Info.plist settings but nothing seems to do this.
Thanks,
Erg
___
Cocoa-dev mailing list
I have an object which I initialize like this:
gReg = [ [ Registry alloc ] init ];
Problem is, my init method never receives any message.
Does anyone know what can cause this?
Thanks,
Erg
___
Cocoa-dev mailing list
in the code.
Erg
From: David Blanton aired...@tularosa.net
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 4:38:42 PM
Subject: Re: -init never gets sent
what is the result of [ Registry alloc ] ?
On May 28
Either your main thread doesn't implement the selector requested, or else it's
an issue with the runloop never processing the request. If you have code that
alters the runloop or modifies its input sources, check that code first.
Erg
From: Ben Einstein
the exact same source file in another app and it all works
fine. Must be a stack blow or something.
From: David Blanton aired...@tularosa.net
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 5:21:55 PM
.
Thanks,
Erg
From: Peter Ammon pam...@apple.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 6:22:20 PM
Subject: Re: Hiding process list app icon for GUI apps
On May 28, 2009, at 1:57 PM, Erg Consultant wrote
.
I think the runtime stuff on OS X was never really ready for prime-time.
Erg
From: Eric Schlegel eri...@apple.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 10:10:36 PM
Subject: Re: Hiding process list
Is there a way to read AliasHandle data from an OS X Finder alias file - sort
of like the way one could create an AliasHandle in memory in the old days by
reading a alias resource from OS 9 alias files?
The Alias Manager APIs only seem to provide routines for determining if a file
is an alias,
Never run an 'app' as privileged. You need a helper tool to do that. You have a
lot of reading ahead of you to understand how to do this.
Erg
From: Jerry Krinock je...@ieee.org
To: cocoa-dev@lists.apple.com Developers cocoa-dev@lists.apple.com
Sent: Thursday,
I have an NSTableView embedded in an NSSplitView. When I send my NSTableView
object the -frame message, I get the frame of the NSSplitView instead. How can
I get the frame of the NSTableView directly?
Thanks,
Erg
___
Cocoa-dev mailing list
I have my own objects I store in an NSOutlineView. Each object has a name
property.
When I implement my custom NSFormatter to tell the table how to draw cells, do
I create a separate subclass of NSFormatter, or can I make my existing data
class subclass from NSFormatter and then use the data
Does anyone know of some Cocoa libraries for detecting which country the
machine's IP address is currently running in?
Thanks.
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
The documentation does't say whether it runs synchronously or returns
immediately before the copy completes.
Does anyone know?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
If I add CFShow statements to my code, they show up in Console when run as
admin, but not when run as a non-admin user.
Does anyone know why this happens?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
I am fully aware of the security issues having already written several helper
tools. Stating that a temp text file written to /tmp is a security hole is
really stretching it a bit.
NSTemporaryDirectory can't be used because there is no way to specify that path
in Packagemaker. I did indeed
I have some code that grabs an app icon from an app bundle's .icns file and
then sets it onto another file using -setIcon:forFile. Under 10.5 it works
fine. Under 10.4 the icon gets set but is garbled. I tried all the options but
still get the same result. Does anyone know why this happens on
On Thu, Apr 30, 2009 at 7:24 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
One other thing I should mention: the location has to be non-obvious as the
files being written are DRM files and although I make them invisible, so all
variants of tmp, etc are out.
It's going to be trivial to track
...@apple.com wrote:
On Tue, Apr 28, 2009 at 02:49:23PM -0700, Erg Consultant wrote:
I have two standard Cocoa objects in my window that I animate using CA's AppKit
-animator method. When my nib loads, I get the original NSRects of the two
items by sending them the -frame message. I then recalc the rects
/ has been in use since the inception of unix in 1970 that's 39 years. I
seriously doubt it's going to change anytime soon. In 39 more years, i'll be
dead.
ERG
Sent from my iPod
On Apr 29, 2009, at 8:50 PM, Michael Ash michael@gmail.com wrote:
On Wed, Apr 29, 2009 at 10:22 PM, Andrew
Is there any location on the system outside the current user's dir that is
writable outside the user's domain? I need my app to create some files when run
under a non-admin acct that I need to persist across boots/logins. But every
permanent location seems to be locked except for things inside
One other thing I should mention: the location has to be non-obvious as the
files being written are DRM files and although I make them invisible, so all
variants of tmp, etc are out.
Erg
From: Dave Geering dlgeer...@gmail.com
To: Erg Consultant erg_consult
, 2009 4:16:03 PM
Subject: Re: Writable dir for non-admin user outside user's dir
On Thu, Apr 30, 2009 at 5:52 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
Is there any location on the system outside the current user's dir that is
writable outside the user's domain? I need my app to create
I am using PackageMaker 2.1.1 from Xcode 2.5. My installers have to work with
10.4/10.5.
My built installer prompts for an admin password before install, but if my
installer plugin tries to do any file operations on anything inside
/Applications at runtime - such as deleting or moving one of
is NSString-FSRef so hard?
On Tue, Apr 28, 2009 at 12:21 AM, Erg Consultant
erg_consult...@yahoo.com wrote:
LSOpenCFURLRef doesn't work either - kLSApplicationNotFoundErr.
The nature of the file is the app's exe which is normally inside the MacOS
dir.
However, all this works perfectly fine
, process, it says not found + the binary itself never
runs (even though LSOpenApplication returns no err). I assume this has
something to do with XCode launching it within its own process. What a headache!
Erg
From: Chris Hanson c...@me.com
To: Erg Consultant
I tried this and it absolutely works great - although I too had thought that it
wouldn't.
Who woulda thunkit?
Erg
From: Erik Buck erik.b...@sbcglobal.net
To: cocoa-dev@lists.apple.com
Sent: Tuesday, April 28, 2009 8:18:56 AM
Subject: Re: C string
C
string encoding
and may lose information in the conversion from that encoding. You are strongly
discouraged from using
these methods as are deprecated in Mac OS X v10.4.
From: Clark Cox clarkc...@gmail.com
To: Erg Consultant erg_consult...@yahoo.com
Cc
Except in the case where one line of code creates the temp file and then
another immediately uses it and deletes is - as in my case. There is zero
chance the user could FUS faster than my 2 lines of code create and delete the
file.
Erg
From: Graham Lee
: Tuesday, April 28, 2009 9:59:07 AM
Subject: Re: Why is NSString-FSRef so hard?
Le 28 avr. 09 à 17:47, Michael Ash a écrit :
On Tue, Apr 28, 2009 at 1:13 AM, Erg Consultant
erg_consult...@yahoo.com wrote:
Apple's doc's specifically say to stay away from using the CString
routines which require
This is a DRM situation where there are multiple app executables inside the
main .app bundle.
From: Kyle Sluder kyle.slu...@gmail.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev cocoa-dev@lists.apple.com
Sent: Tuesday, April 28, 2009 2:11:40 PM
I have two standard Cocoa objects in my window that I animate using CA's AppKit
-animator method. When my nib loads, I get the original NSRects of the two
items by sending them the -frame message. I then recalc the rects to move the
two views offscreen.
When I show my window, I animate both
Is there a macro for defining an NSString constant as a previously defined C
string constant without having to actually define the string in two places? I
have something like the following:
#define kTempQuagmireHackFilePathCString
/private/tmp/quagmire.dat
#define
, outPSN ); // - Fails with -10810 error
- Unexpected internal error
From: Steve Christensen puns...@mac.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009 6:04:14 PM
Subject: Re: Why is NSString-FSRef so
however does not
work - the special characters get mangled.
Erg
From: Ken Thomases k...@codeweavers.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009 6:12:33 PM
Subject: Re: Why is NSString-FSRef so hard
Are NSURL and CFURL not toll-free bridged?
Erg
From: Sean McBride cwat...@cam.org
To: Erg Consultant erg_consult...@yahoo.com; cocoa-dev@lists.apple.com
Sent: Sunday, April 26, 2009 2:41:20 PM
Subject: Re: Why is NSString-FSRef so hard?
Erg Consultant (erg_consult
michael@gmail.com
To: cocoa-dev cocoa-dev@lists.apple.com
Sent: Monday, April 27, 2009 9:57:33 PM
Subject: Re: Why is NSString-FSRef so hard?
On Tue, Apr 28, 2009 at 12:51 AM, Erg Consultant
erg_consult...@yahoo.com wrote:
So why isn't it working? Why does LSOpenApplication give me an error
NSString-CFURL-FSRef.
Erg
From: Michael Ash michael@gmail.com
To: cocoa-dev cocoa-dev@lists.apple.com
Sent: Monday, April 27, 2009 9:51:14 PM
Subject: Re: Why is NSString-FSRef so hard?
On Tue, Apr 28, 2009 at 12:26 AM, Erg Consultant
erg_consult...@yahoo.com
would
issue an API that executes single executable binaries only in the case that
they don't have special chars in the path.
Erg
From: Ken Thomases k...@codeweavers.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Monday, April 27
= (DWORD)pid;
result = YES;
}
}
}
}
From: Ken Thomases k...@codeweavers.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent
I am trying to convert an NSString containing a path to a file directly to an
FSRef. If there are no special characters in the path, it's easy - I can go
from NSString to CFURL to FSRef.
But if the path contains any special characters at all, both CFURL and NSURL
creation routines fail. No
I was using CFURLGetFSRef passing in the NSString which works fine as long as
the path contains no special chars. If it does, CFURLGetFSRef returns nil.
Erg
From: Nick Zitzmann n...@chronosnet.com
To: Erg Consultant erg_consult...@yahoo.com
Cc: cocoa-dev
: Why is NSString-FSRef so hard?
On Sat, Apr 25, 2009 at 7:28 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
I was using CFURLGetFSRef passing in the NSString which works fine as long as
the path contains no special chars. If it does, CFURLGetFSRef returns nil.
CFURLGetFSRef is great if what
Is there a way to get the path of a file opened by an NSFileHandle from the
file handle itself? I have a method that takes only an NSFileHandle to an open
file but I don't know the file's path.
Thanks,
Erg
___
Cocoa-dev mailing list
9:11:00 PM
Subject: Re: Path from NSFileHandle?
On Apr 8, 2009, at 8:54 PM, Michael Ash wrote:
On Wed, Apr 8, 2009 at 11:00 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
Is there a way to get the path of a file opened by an NSFileHandle from the
file handle itself? I have a method
Consultant erg_consult...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, March 26, 2009 7:24:29 AM
Subject: Re: Reading one line at a time using NSFileHandle
On Wed, 25 Mar 2009 19:36:01 -0700 (PDT), Erg Consultant
erg_consult...@yahoo.com said:
Is there a way to read one line of a text file
Is there a way to read one line of a text file at a time using NSFileHandle
(the way fgets does)?
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
I try to launch an application by passing a full POSIX path to NSWorkspace
-launchApplication: on 10.3.9 but it fails.
I have built my app using the 10.4 SDK and tried it targeting both 10.3 10.4
as deployment since I have some newer 10.4 routines which won't work on 10.3. I
also check each
Are there any classes in Cocoa for simple text file or plist file encryption? I
just need something I can point at a file on disk and do simple encryption
without a password or key and then decode it later. Doesn't have to be fancy or
even all that secure - just something simple and easy to
Is it possible to change the icon of a running app after it has already been
started? My app has no .icns file not will it - but I want to set it to some
other bundle's icon after my app has already launched. I've seen discussions in
the archives about how to change the Dock icon, but not the
When I try to connect to my web server using NSURLConneciton thusly:
loadedData = [ NSURLConnection sendSynchronousRequest:request
returningResponse:response error:error ];
The data comes back with a zero length. Inspecting the error reveals that it's
an untrusted server certificate error. Is
75 matches
Mail list logo