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
e Mac - no idea what 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 ca
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 (Cocoa-dev@li
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 (Cocoa-dev@lists.apple.c
re else in the code.
Erg
From: David Blanton
To: Erg Consultant
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, 2009, at 5:34 PM, Erg Consultant w
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
To: c
t ran the exact same source file in another app and it all works
fine. Must be a stack blow or something.
From: David Blanton
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 5:21:55 PM
Subject: Re: -init never gets sent
what doe
be visible.
Thanks,
Erg
From: Peter Ammon
To: Erg Consultant
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:
> Is there a way to hid
.
I think the runtime stuff on OS X was never really ready for prime-time.
Erg
From: Eric Schlegel
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 10:10:36 PM
Subject: Re: Hiding process list app icon for GUI apps
On May 28, 2009
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 r
How does that help?
I can get a list of all user dirs via:
NSSearchPathForDirectoriesInDomains( NSUserDirectory, NSLocalDomainMask, YES );
But I still don't know which of those returned is the Shared one.
Erg
From: Chris Parker
To: Erg Consultan
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 moderators
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
hiver ] archiveRootObject:toFile: hoses my
directory's permissions
On Sat, May 30, 2009 at 1:39 AM, Erg Consultant
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 I installed it -
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 or
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 qui
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 table
: Re: [ NSSplitview ] -setAutosaveName
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant
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://developer.apple.com/documentation
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
To: Erg Consultant
Cc:
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 th
code to complete *after* Rosetta
has *finished* launching.
Erg
From: Michael Ash
To: cocoa-dev
Sent: Tuesday, June 9, 2009 8:18:18 AM
Subject: Re: [NSTask] -launch return
On Tue, Jun 9, 2009 at 4:56 AM, Erg Consultant wrote:
> I need to launch and execut
009 9:43:51 AM
Subject: Re: [NSTask] -launch return
Erg Consultant wrote:
> [ launchTask launch ];
>
> // Wait 'til is running...
>
> while
appens because there is no delay in launching
the child.
Erg
From: Michael Ash
To: cocoa-dev
Sent: Tuesday, June 9, 2009 5:47:48 PM
Subject: Re: [NSTask] -launch return
On Tue, Jun 9, 2009 at 6:55 PM, Erg Consultant wrote:
> I forgot to mention that the
failed to mention: I don't own the code for the child process
- ever. It has to work with arbitrary compiled-only binaries that I didn't
write.
Erg
From: Greg Guerin
To: list-cocoa-dev
Sent: Tuesday, June 9, 2009 6:05:34 PM
Subject: Re: [NSTask]
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
To: Erg Consultant ; cocoa-dev@lists.apple
] -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 process that only contains
I just opted for #2 & #3.
Erg
From: Greg Guerin
To: list-cocoa-dev
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 that I should have to write a
&g
_
From: M Pulis
To: Erg Consultant
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 to write a
> 3rd PPC proce
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 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:
95.2086
Thanks,
Erg
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 w
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 mai
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 cocoa-dev-admins(at)lists.app
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
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 on
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 use.
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 A
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 mod
27;t know is which API to use to read non-ASCII lines of text one
at a time from one file, and write them to another file after processing each
one.
One would think Cocoa would have something like fgets but that works with any
encoding.
Erg
From: Matt Neubur
om: Jean-Daniel Dupas
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, March 26, 2009 2:05:55 PM
Subject: Re: Reading one line at a time using NSFileHandle
If this is a small file, just create an NSString and iterate over lines.
Here is a simple snippet that count number of lines i
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 (Cocoa-
from NSFileHandle?
On Apr 8, 2009, at 8:54 PM, Michael Ash wrote:
> On Wed, Apr 8, 2009 at 11:00 PM, Erg Consultant
> 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 that takes only an NSFileHandle to an
&
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 matt
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
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009
25, 2009 at 7:28 PM, Erg Consultant
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 you have originally is a CF/NSURL. But
if you just have an
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 k
r = LSOpenApplication( &inAppParams, &outPSN ); // <- Fails with -10810 error
- Unexpected internal error
____
From: Steve Christensen
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009 6:04:14 PM
Subject: Re: Why is NSString-&
ingRef however does not
work - the special characters get mangled.
Erg
From: Ken Thomases
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009 6:12:33 PM
Subject: Re: Why is NSString->FSRef so hard?
On Apr 25, 2009, at 8:0
NSURL and CFURL not toll-free bridged?
Erg
From: Sean McBride
To: Erg Consultant ; 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...@yahoo.com) on 2009-04-25 7:33
e URL points to when it gets converted to an FSRef.
So why isn't it working? Why does LSOpenApplication give me an error?
Erg
From: Ken Thomases
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Monday, April 27, 2009 9:41:01 PM
Subject: Re: Why i
lppiProcInfo->dwProcessId = (DWORD)pid;
result = true;
}
}
}
}
From: Michael Ash
To: cocoa-dev
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
wrote:
>
eated from
the path NSString->CFURL->FSRef.
Erg
From: Michael Ash
To: cocoa-dev
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
wrote:
> One other thing I shou
that Apple 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
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Monday, April 27, 2009 10:11:43 PM
Subj
!err )
{
err = GetProcessPID( &outPSN, &pid );
if( !err )
{
lppiProcInfo->dwProcessId = (DWORD)pid;
result = YES;
}
}
}
}
_
:21 AM, Erg Consultant
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 if there are no special chars in the
> pa
e launched, 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
To: Erg Consultant
Cc:
I tried this and it absolutely works great - although I too had thought that it
wouldn't.
Who woulda thunkit?
Erg
From: Erik Buck
To: cocoa-dev@lists.apple.com
Sent: Tuesday, April 28, 2009 8:18:56 AM
Subject: Re: C string constant->NSString constant without
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
To: Erg Consultant
Cc: cocoa-dev
Sent: Tuesday, April 28, 2009 9
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
To:
hy 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
> wrote:
>> Apple's doc's specifically say to stay away from using the "CString"
>> routines which require encodings. So now th
This is a DRM situation where there are multiple app executables inside the
main .app bundle.
From: Kyle Sluder
To: Erg Consultant
Cc: cocoa-dev
Sent: Tuesday, April 28, 2009 2:11:40 PM
Subject: Re: Why is NSString->FSRef so hard?
On Tue, Apr 28, 2009 a
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 vie
:
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 to mov
/ 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 wrote:
On Wed, Apr 29, 2009 at 10:22 PM, Andrew Farmer wrote:
On 29 Ap
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 t
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
To: Erg Consultant ; cocoa-dev@lists.apple.com
Sent
non-admin user outside user's dir
On Thu, Apr 30, 2009 at 5:52 PM, Erg Consultant
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 some files when
> run under a non-admin acc
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 my
That's a pretty lame approach considering that Apple hides theirs.
Erg
From: Michael Ash
To: cocoa-dev
Sent: Thursday, April 30, 2009 9:55:36 PM
Subject: Re: Writable dir for non-admin user outside user's dir
On Thu, Apr 30, 2009 at 7:24 PM, Erg
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 end
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 10
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 pos
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 comment
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 moderato
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 ob
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
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
To: "cocoa-dev@lists.apple.com Developers"
Sent: Thursday, May 21, 2009 4:25:15 AM
Subject: Re:
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,
78 matches
Mail list logo