On Dec 3, 2008, at 19:36 , Bill Janssen wrote:
I'm writing an installer that adds an application to the login items,
but my script (see below) keeps failing, with a bus error, like this:
You're dereferencing a null pointer. Assert that url is not null after
CFURLRef.alloc()... returns.
___
On Nov 28, 2008, at 14:48 , John Love wrote:
Reference page 43 of Apple's MultiThreading.pdf.
I conclude from this page that the preferred, if not only, way to
have the main thread stop the background thread is through KVC.
Before I continue to inflict more pain on myself, why can't I simp
On Nov 6, 2008, at 15:24 , I. Savant wrote:
On Thu, Nov 6, 2008 at 12:32 AM, tianshanxue <[EMAIL PROTECTED]
> wrote:
Dows anyone know how to create non statdard shape window?
http://developer.apple.com/samplecode/RoundTransparentWindow/
I wish that I had your mastery of Brevity :) Do you
On Nov 6, 2008, at 00:32 , tianshanxue wrote:
Dows anyone know how to create non statdard shape window?
The window server always creates your drawing area as a frame
(rectangle) but
that doesn't mean you have to draw a frame. If you want to draw
something non-standard
you will have to cre
On Nov 5, 2008, at 20:40 , Maggie Zhang wrote:
Is there any Mac OS API that will tell whether the OS is shutting
down or
restarting?
Yes, but it depends on what you want to do... the basic API is in the
User Space
portion of the IOKit Framework. See this tech q&a and the IOKit
Framework
On Nov 6, 2008, at 12:34 , Arun wrote:
Hi All,
what is the best way of converting NSString into wstring?
I've never used mbstowcs() type functions, but I would imagine that's
how you would do it. First, convert the NSString to a C string with
the appropriate encoding, then use mbstowcs w
On Nov 6, 2008, at 12:20 , Glover,David wrote:
Hi all,
I need to remove a folder from within /Applications/OurCompany, so I'm
using Authorization Services to get Admin rights, and then using
removeFileAtPath to remove the folder.
When I'm logged on as admin, this works perfectly fine. Wh
On Nov 3, 2008, at 11:27 , Karl Moskowski wrote:
On 3-Nov-08, at 11:16 AM, Jason Coco wrote:
Yes... by default messages are pruned every 24 hours by syslog. See
the section on Messaging Expiry and Archival in the manpage for
syslogd(8) for more information on how to adjust this
On Nov 3, 2008, at 11:01 , Karl Moskowski wrote:
Last week, I started converting my app to use ASL, and everything
was hunky dory. For diagnostic purposes, I use an ASL query to
export to text for upload recent logs.
// really, days & flag are passed in to a method
double d
On Oct 30, 2008, at 16:32 , Georg Seifert wrote:
Thanks for your answer. I found this with google, too.
The problem is, I want to build somthing like a font preview app. So
it needs to be fast and may happen with 10 or even 50 fonts at once.
And it may conflict with activated fonts.
Well
On Oct 30, 2008, at 16:54 , J. Todd Slack wrote:
Hi All,
Can I run an NSTask and get the results back for parsing?
I looked at CocoaDev and I see that I can specify a pipe, which
needs a file to write to, but can I just get the results back in an
array or something?
You would have to re
On Oct 30, 2008, at 11:40 , Georg Seifert wrote:
hello,
I wonder what is the best way to render images from a font file with
a given string. The font is not activated in the system.
I came up with:
- using Quicklook, but I could only get images with "Ag" (like the
icon for font files), n
On Oct 29, 2008, at 12:22 , Adam Penny wrote:
Hi there,
I want to save preferences when the user either closes the
preference pane window, clicks the show all button or quits system
preferences. Can I just put the method call in the -(void)dealloc or
is this a bad idea?
This is a bad i
On Oct 29, 2008, at 09:06 , Yvan BARTHÉLEMY wrote:
A solution for this is to not use directly asl_log, but wrap it to a
function that will then use asl_log for console, and fprintf for
logging to stderr (instead of asl_open(stderr)), of course you will
have to regenerate yourself date, hos
On Oct 29, 2008, at 00:29 , Adam R. Maxwell wrote:
On Oct 28, 2008, at 9:14 PM, Jason Coco wrote:
On Oct 28, 2008, at 16:53 , Sean McBride wrote:
On 10/28/08 4:03 PM, Jason Coco said:
Also, you should not be using non-ascii characters in string
literals :) hopefully you're just
On Oct 29, 2008, at 00:15 , Albert Jordan wrote:
What is the recommended way for Object B to inform Object A that it
is done processing a request for the following scenario?
Object A has a list of phone numbers to send SMS messages
Object B implements sending an SMS message to a given phon
On Oct 28, 2008, at 16:53 , Sean McBride wrote:
On 10/28/08 4:03 PM, Jason Coco said:
Also, you should not be using non-ascii characters in string
literals :) hopefully you're just doing this to demonstrate the
issue.
You should
be doing something like this:
char *hiragana_a = {
On Oct 28, 2008, at 14:01 , Karl Moskowski wrote:
I've been experimenting with replacing my app's logging with Apple
System Logger. When it comes to multi-byte characters, every thing
looks OK in Console.app. However, Xcode's console shows things
incorrectly. It probably won't come up ofte
On Oct 26, 2008, at 18:29 , Graham Cox wrote:
Let's say I have a NS(Mutable)Dictionary and I'd like to make a very
simple editor for its keys and values. So I have a NSTableView with
two columns, key and value. The dictionary can contain any mix of
strings and numbers, and the numbers can
On Oct 24, 2008, at 14:10 , Don Arnel wrote:
I was just looking through some code that I wrote, and noticed I had
changed a float to an int in my header file but I was still
assigning float values to it in the code. The odd thing was that the
compiler was not complaining about it. Which wa
On Oct 23, 2008, at 21:20 , Randall Meadows wrote:
I'm doing some custom drawing in a custom view, but I need to
capture that in a reflected image. So in that custom view's
subclassed -drawRect:, I'm creating an NSImage, locking focus on
that, doing all my drawing, then unlock focus. I t
On Oct 23, 2008, at 18:27 , Chris Markle wrote:
Jason,
Why not use ASL for logging? It's worked really well for me. I also
have
an Obj-C class you can use that wraps ASL if you want.
Right now our app runs (for better or for worse) on Windows and OS X
with lots of common code between the
On Oct 23, 2008, at 16:27 , Chris Markle wrote:
Thanks guys. Good advice. Here's my summary of what you guys said:
1. Document to read: Low-Level File Management Programming Topics:
Locating Directories on the System
(http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/T
On Oct 21, 2008, at 22:13 , Bill Janssen wrote:
I'm writing a little uninstaller app in Cocoa-Python, and I need to
put
up that ubiquitous OS X prompt for the admin password, then elevate
the
privileges of the script to remove some directories installed as root.
Is that a standard widget?
On Oct 20, 2008, at 15:52 , Tom Fortmann wrote:
I need help debugging a problem with a long running daemon running
under
launchd. The daemon is being repeatedly killed and restarted. The
daemon
follows all of the rules for running under launchd. It is starting
successfully, but then rece
On Oct 19, 2008, at 14:22 , Stephen J. Butler wrote:
On Sun, Oct 19, 2008 at 8:33 AM, Benjamin Dobson
<[EMAIL PROTECTED]> wrote:
If I enable JavaScript in my WebView, it exits with status 2, after
printing
"Debugger() was called!" to the console. When I disable it, it
works fine –
but with
On Oct 18, 2008, at 15:43 , Pierce Freeman wrote:
Thanks for your help. However, Xcode gives me this warning when I
build:
NSAlert' may not respond to
'+
alertWithMessageText:defaultButton:aleternateButton:otherButton:informativ
eTextWithFormat:'
alternateButton is spelled wrong ;)
J
On Oct 18, 2008, at 14:35 , Pierce Freeman wrote:
Hi everyone.
I have been attempting to create a NSAlert popup and get the result
(so it
can run an if statement) for the last few hours, but I still can't
get it to
work. My current code is below, if anyone wants to have a look
see... If
On Oct 17, 2008, at 06:03 , Gerriet M. Denkmann wrote:
I have an app which overrides -[NSWindow miniaturize:] in a category
(to avoid crowding the dock).
Works perfectly, but...
If this window being minimized has a sheet attached (attachedSheet
is non-nil) this will be lost on deminiatur
Ribe
To: Jason Coco
Cc: Cocoa-dev
Sent: Oct 16, 2008 13:28
Subject: Re: Faceless background app that uses NSAppleScript
> Add the LSUIElement key to the Info.plist and it will launch without a
> dock icon or a menu.
Aha, it didn't click with me that the application could be a complete
On Oct 16, 2008, at 13:15 , Scott Ribe wrote:
I need to write an app whose purpose is to drive other apps, using
NSAppleScript. No UI is needed. But I'm unclear on what kind of
environment
needs to be set up in order for NSAppleScript to work. I suspect it
needs at
least NSRunLoop event pr
On Oct 15, 2008, at 12:05 , han wrote:
han wrote:
how to complete a c/s app.Is there a sample code?
c/s = client/server. is there the sample codes download link
That totally depends on the type of Client/Server app you want to
make, what technologies you want to use to make it, etc.
Yo
On Oct 14, 2008, at 11:58 , Robert Nikander wrote:
Hi,
How can I be notified when the foreground application changes? I
found "activeApplication" in NSWorkspace. Is there a way to observe
changes to that property? I tried the following, which doesn't seem
to work...
[[NSWorkspace sh
On Oct 14, 2008, at 11:28 , Gerriet M. Denkmann wrote:
HFS+ and Finder can use filenames which use in Utf-16 up to 255
shorts.
But in the program below there seems to exist some other limit (at
least on 10.4.11 Tiger).
Where is this documented?
Or what am I doing wong?
... Filewrapper ha
On Oct 9, 2008, at 20:47 , Michiel de Hoon wrote:
--- On Thu, 10/9/08, Jason Coco <[EMAIL PROTECTED]> wrote:
Submit a bug report and use a CFRunLoop for now :)
In my understanding, CFRunLoop cannot replace [NSApp run] for GUI
applications. For example, see this thread:
On Oct 9, 2008, at 09:15 , Michiel de Hoon wrote:
Hi everybody,
According to the documentation, [NSApp stop:] will break the flow of
control out of the [NSApp run] method. While this is true, [NSApp
run] doesn't notice that [NSApp stop:] was called until some other
event comes along. S
On Oct 7, 2008, at 04:06 , Alex Reynolds wrote:
However, if I skip the NSThread instantiation step, then my NSTimer
starts working again.
I have also tried:
[[NSRunLoop currentRunLoop] addTimer:myNSTimer
forMode:NSDefaultRunLoopMode];
in my new view, but this does not work either.
What
On Oct 2, 2008, at 21:20 , Bill Bumgarner wrote:
On Oct 2, 2008, at 12:30 PM, Kelly Graus wrote:
Is the only way to allow a user to write to a protected location
use the AuthorizationExecuteWithPrivileges function?
If so, is there a way to tell when the application has quit, and
get the exi
On Sep 30, 2008, at 16:20 , Matthew Gertner wrote:
Hi,
I'm trying to add a new menu to the main menu of my application using
Cocoa. I thought something like this would do the trick:
NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"];
NSMenuItem* item = [[NSApp mainMenu] addItemWithTitle:@"f
On Sep 30, 2008, at 07:29 , Michael Robinson wrote:
Hello,
I am trying to convert the following from Javascript to Cocoa ObjC:
var retVal = Math.round(cornerSize*(1-Math.cos(Math.asin(i/
cornerSize;
return retVal;
Now retVal _must_ be an int, because the value is used as a margin
at
On Sep 25, 2008, at 16:48 , Sandro Noel wrote:
Gretings.
I would like my application to have the option to auto-start itself
when the user log's in
but I cant seem to find information on how to do it in the
documentation.
I'm probably not looking for the right keywords, could someone point
On Sep 25, 2008, at 16:07 , Karan, Cem (Civ, ARL/CISD) wrote:
I've got a class that acts like a super-lightweight server within my
program. It listens for incoming packets of information, decodes
them, and then tells the rest of my code that something changed. So
far, this sounds like a
He said in another message that he didn't want to poll... In that case the only
option is to ensure an input source fires or to use a CFRunLoop instead.
Sent via BlackBerry from T-Mobile
-Original Message-
From: Muraviev Dmitry <[EMAIL PROTECTED]>
Date: Wed, 24 Sep 2008 23:30:45
To: Ja
On Sep 24, 2008, at 15:15 , Jason Bobier wrote:
Hey folks, I have a runloop on a thread that looks like this:
while (! _cancelled) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[runloop runMode:NSDefaultRunLoopMode befor
On Sep 24, 2008, at 15:16 , I. Savant wrote:
On Wed, Sep 24, 2008 at 6:17 AM, Arun <[EMAIL PROTECTED]> wrote:
First time i am to see the panel being launched and if i close the
panel and
try yo launch it one more time, the panel is not vsible.
Your question was answered yesterday ... che
On Sep 24, 2008, at 04:21 , Adil Saleem wrote:
Hi,
I am trying to use bindings for the first time. So this is a pretty
basic question.
As an example what i am trying to do is that i have a NSTextField in
which user enters some numeric value. I have a int type variable in
my class that
On Sep 23, 2008, at 02:58 , Arun wrote:
Hi All,
I am a newbie to cocoa programming.
I have written a small program in which i will be loading a Custom
About
panel from another nib.
This launching of the panel works well only for the first time.
If i close the panel and try to launch for the
On Sep 23, 2008, at 19:20 , Dan Birns wrote:
I'm trying to convert from Carbon to Cocoa for a number of reasons
which I won't go into here.
My application needs to set a timer that causes a function to be
called at a time in the future. This is non-repeating, and
sometimes has be immedi
On Sep 23, 2008, at 02:58 , Arun wrote:
Hi All,
I am a newbie to cocoa programming.
I have written a small program in which i will be loading a Custom
About
panel from another nib.
This launching of the panel works well only for the first time.
If i close the panel and try to launch for the
On Sep 22, 2008, at 23:44 , D.K. Johnston wrote:
Thanks for the explanations: it does make some kind of sense now.
The reason I was looking at both forms is that I want the myInt
property to be read-only, but I want the MyObject instance to be
able to set it. If I do this:
@prope
On Sep 22, 2008, at 21:35 , D.K. Johnston wrote:
I'm trying to learn how to use bindings. MyObject has an NSInteger
myInt. I used @property and @synthesize to make myInt into a
property. In IB I bound an NSTextField to the myInt property. Now
when I do this:
self.myInt = 123;
wh
On Sep 21, 2008, at 23:02 , Rick Mann wrote:
On Sep 21, 2008, at 19:38:16, Jason Coco wrote:
If you look at the top of the reference document, you will see a
small table. The first row is the list of object references that
the object inherits from. Clicking on
any of these will take you
On Sep 21, 2008, at 22:03 , Rick Mann wrote:
Thanks!
You're welcome :)
On Sep 21, 2008, at 18:32:58, Jason Coco wrote:
You would have to track whether or not the text view is at the end.
I suggest looking at the documentation for NSTextView as well as
the Scroll View Programming
On Sep 21, 2008, at 21:05 , Rick Mann wrote:
I want to implement a simple console for my app. As it generates
data, it outputs a string representation of it to an NSTextView in a
window. Already this was fairly cumbersome to do, but I got it
working. The part that doesn't work is that it d
On Sep 20, 2008, at 05:05 , Alex Mills wrote:
Hey,
I have started looking at Key Value Observing but I'm having trouble
working out how to observe the changes within an Array.
Is there some place I can find example code on this to help wrap my
head around it?
I'm pretty sure that you c
On Sep 19, 2008, at 18:27 , Michael Ash wrote:
On Fri, Sep 19, 2008 at 2:41 PM, John Love <[EMAIL PROTECTED]>
wrote:
Michael Ash wrote:
Has it occurred to you that waiting for the operation to finish is
rather at odds with the idea of trying to run it asynchronously to
keep your program r
On Sep 19, 2008, at 17:20 , Nick Zitzmann wrote:
On Sep 19, 2008, at 3:15 PM, Jordon Hirshon wrote:
How can I read a file a line at a time (i.e. getline)? I'm trying
to do this in a Cocoa Framework.
Try using NSFileHandle to read a file until a line feed is
encountered. There's no bu
On Sep 18, 2008, at 05:18 , Florian Soenens wrote:
Hi list,
anyone knows why in this simple piece of code, the method testTimer
is only called once and not every 2 seconds?
Yes, it is because you created a timer and then fired it manually. You
need to schedule the timer with the run loop
On Sep 18, 2008, at 00:50 , Rashmi Vyshnavi wrote:
I want to know when my computer connects/disconnects to WiFi/AirPort
network.
Is there a way to get the status of connection to a WiFi network. I
tried
using System Configuration API,but I could not get the status. Here
is the
snippet
--
On Sep 17, 2008, at 12:08 , Roland King wrote:
You'd think perhaps that alloc/init would give you an object which
really has never been retained by anyone else, but as I said I
remembered a post from a while ago about a complex object which was
alloc/init'ed but ended up still having a reta
On Sep 16, 2008, at 22:41 , Roland King wrote:
Jason Coco wrote:
NSMutableString *str = [[NSMutableString alloc]
initWithCapacity:someAssumedCapacity];
/* do stuff */
[str release];
Is that actually guaranteed to release the string *right now*? I
only ask because I seem to recall a
On Sep 16, 2008, at 21:58 , Bill Bumgarner wrote:
On Sep 16, 2008, at 6:29 PM, Jason Coco wrote:
Is it actually retained by the pool, or does the pool just delay
the final release?
It doesn't really matter how it's implemented... either way, you
shouldn't release it unless
On Sep 16, 2008, at 21:24 , Dave DeLong wrote:
On 16 Sep, 2008, at 7:22 PM, Graham Cox wrote:
On 17 Sep 2008, at 11:11 am, Dave DeLong wrote:
because only a couple days ago I had a crash when I tried
releasing an already autoreleased object
Yes, because that would be an over-release.
On Sep 16, 2008, at 20:59 , Dave DeLong wrote:
The general rule with convenience class methods like that is that
they return an autoreleased object. What that means is that unless
you retain it, it will disappear at some time in the future
(whenever the current AutoreleasePool gets draine
On Sep 15, 2008, at 18:59 , J. Todd Slack wrote:
Hi All,
Does anyone know what I need to connect from OS X to a MySQL DB and
run a few queries?
This would be from Objective-C or C++.
Any examples?
What should I be downloading?
The MySQL C API is distributed with MySQL, so if you have d
On Sep 15, 2008, at 14:04 , Quincey Morris wrote:
On Sep 15, 2008, at 10:31, Jason Coco wrote:
You /should/, however, autorelease your NSOperation since your queue
will retain it when you add it and release it when it completes.
This sounds plausible, but I can't find anything i
On Sep 15, 2008, at 11:02 , John Love wrote:
I must be doing something terribly wrong, because when I start up
the NSOperationQueue that does some time consuming calculations, I
do not get back control of my application until after the lengthy
calculation is complete. Here are the relevant
On Sep 15, 2008, at 05:35 , Jean-Daniel Dupas wrote:
Le 15 sept. 08 à 09:56, Jason Coco a écrit :
On Sep 15, 2008, at 03:49 , Markus Spoettl wrote:
Hi List,
I just know it must be there but I can't see it. How can I get to
the NSTimeZone for a given NSDate. When using -descri
On Sep 15, 2008, at 03:49 , Markus Spoettl wrote:
Hi List,
I just know it must be there but I can't see it. How can I get to
the NSTimeZone for a given NSDate. When using -description: the date
got a time zone, so it's stored in there but how on earth can I get
to it? I only need the GM
On Sep 15, 2008, at 00:45 , Brett Powley wrote:
On 15/09/2008, at 2:15 PM, Alex Reynolds wrote:
I'm wondering if I'm using unsigned integers (specifically
NSUInteger) properly or not.
I was under the impression that unsigned integers run from 0 to
MAX_INT, but when I use them in a "for"
On Sep 15, 2008, at 00:44 , Alex Reynolds wrote:
The %lu with casting seems to run into the same issue as %u:
...
2008-09-14 21:43:07.241 NSUIntTest[19779:10b] NSUInteger: 2
2008-09-14 21:43:07.259 NSUIntTest[19779:10b] NSUInteger: 1
2008-09-14 21:43:07.260 NSUIntTest[19779:10b] NSUInteger: 0
On Sep 15, 2008, at 00:42 , Alex Reynolds wrote:
Interesting:
...
2008-09-14 21:38:56.311 NSUIntTest[19750:10b] NSUInteger: 2
2008-09-14 21:38:56.329 NSUIntTest[19750:10b] NSUInteger: 1
2008-09-14 21:38:56.341 NSUIntTest[19750:10b] NSUInteger: 0
2008-09-14 21:38:56.344 NSUIntTest[19750:10b] NS
On Sep 14, 2008, at 16:30 , Patrick Neave wrote:
Sorry for the long post, but I have been stuck on this for a while
now and not sure how to proceed. Looking forward to your replies.
Hi Patrick,
I haven't read this yet, so I'm not sure if it will be useful or not,
but it may... assuming
On Sep 14, 2008, at 19:36 , John Michael Zorko wrote:
Julien et al,
sleep() is just blocking the thread, so no event is processed. Use
run loops instead.
Try to replace sleep() with [[NSRunLoop currentRunLoop]
runMode:beforeDate:]
You mean the NSURLConnection callbacks are not callb
On Sep 12, 2008, at 18:26 , Citizen wrote:
On 12 Sep 2008, at 22:06, Dave DeLong wrote:
I've been looking inside NSWorkspace, NSBundle, NSApplication,
NSFileWrapper, etc for some way to get the display name of an
application from it's bundle identifier, but I can't find
anything. Is the
On Sep 12, 2008, at 00:10 , Bridger Maxwell wrote:
Woops. I tried to reply to this thread a while ago, but I wasn't
watching
what I was doing and accidentally replied specifically to Ken. Sorry
Ken! I
am still having this issue though.
I suspect you've recently installed a haxie, input ma
On Sep 10, 2008, at 17:31 , J. Todd Slack wrote:
Hi Sherm,
So if I have an objective C class, how can I call a .c class? and
pass my arguments from the objective-c class?
What kind of ".c class"? And what kind of arguments? It might help to
give the prototype of some of the functions
tha
On Sep 9, 2008, at 06:24 , Alex Reynolds wrote:
I am currently putting 320 to 480 character long NSString *
instances into an NSMutableArray. The characters are 0 or 1.
I guess I could use an int array, but I'm looking to speed up my app
and reduce storage. Is it possible to create a BOOL
I would suggest using the DTrace stuff... either using instruments or
using DTrace scripts directly... there is tons of good information
about DTrace at google.
You can also look at /usr/include/mach directory for various mach
calls regarding process statistics, including memory usage (all
On Sep 5, 2008, at 00:04 , John Joyce wrote:
Does anybody know any official or proper way to link to the SDL
framework that is bundled in the root library in Leopard?
/Library/Frameworks/SDL.framework
is surprisingly, there!
I don't have any such directory on my installation of Leopard. Ano
On Sep 3, 2008, at 17:57 , Michael Stearne wrote:
Hi.
I'm new to OS X development and Objective C. I have a NSString (or
NSMutableString if that is wiser) and I would like to add text on to
the end
of it.
In PHP it would be something like:
$myString=$myString." more stuff";
I have looked
On Aug 29, 2008, at 13:38 , Allen Curtis wrote:
The problem: I found that if you release the CFMutableArray, you
also loose
the NSMutableArray
Question:
1. Where can I get a better understanding of the data conversion
between
these different frameworks?
2. Ultimately the device path names
On Aug 28, 2008, at 00:31 , Alex Kac wrote:
I need to check for free RAM before performing a specific operation.
I've Googled and checked in the docs and I suspect its my
terminology that's just out of whack.
So what is the best way to find out how much available RAM is
available in a Co
On Aug 27, 2008, at 21:19 , J. Todd Slack wrote:
Hi Jason
-(BOOL)createDirectoryAtPath:(NSString*)path
withIntermediateDirectories:(BOOL)createIntermediates attributes:
(NSDictionary*)attributes error:(NSError**)error;
I saw this, but if I have to deploy on 10.4, will this call fail
on
On Aug 27, 2008, at 21:08 , J. Todd Slack wrote:
Hi Jason,
It simply does not create the directory. This is code that I had
in another project that worked.
What am I missing?
Does the parent directory exist already (~/Application Support/Ring-
Maker)? If not, this
call will fail. Howeve
On Aug 27, 2008, at 20:43 , J. Todd Slack wrote:
Hi All,
It simply does not create the directory. This is code that I had in
another project that worked.
What am I missing?
Does the parent directory exist already (~/Application Support/Ring-
Maker)? If not, this
call will fail. However,
On Aug 26, 2008, at 16:54 , Gerriet M. Denkmann wrote:
On 27 Aug 2008, at 02:09, has wrote:
Gerriet M. Denkmann wrote:
When I try in Script Editor:
set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode
text
and do "Compile", then this gets transformed into:
set macpath to file "
On Aug 26, 2008, at 04:19 , Gerriet M. Denkmann wrote:
On 26 Aug 2008, at 15:04, Andrew Farmer wrote:
On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote:
I want to open some file:
source =
"tell application "SomeApp"...
You're making things harder than they need to be.
[[NSWorkspace shar
On Aug 24, 2008, at 21:33 , Chris Idou wrote:
How do I create a property in the user defaults of type boolean?
Internally it seems to use a NSCFBoolean which is an undocumented
type. If I make the assumption it is the same as a CFBoolean, and
overlooking the oddness of having to fall back
On Aug 22, 2008, at 15:46 , Charles Srstka wrote:
On Aug 21, 2008, at 10:02 PM, Ricky Sharp wrote:
(1) never ever ever capture the display when using AppKit.
This appears to be incorrect, as Apple seems to endorse and even
provides sample code for capturing the screen while using AppKit:
On Aug 22, 2008, at 13:12 , Luca Ciciriello wrote:
Hi all.
I'm porting a Linux project (using sockets to implement a ping
function) on Mac OS X. My problem is that the function:
int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
returns always -1.
Where is my mistake? For me is the
On Aug 22, 2008, at 05:26 , Vladimir Sokolov wrote:
2008/8/22, Bill Bumgarner <[EMAIL PROTECTED]>:
On Aug 22, 2008, at 1:00 AM, Vladimir Sokolov wrote:
Hello All,
I am working on a command line tool. I use
NSArray *params = [[NSProcessInfo processInfo] arguments]
to get a list of command l
On Aug 21, 2008, at 22:37 , Mike wrote:
For a Kiosk application.
Ah, that makes sense... well, I'm not really sure about Cocoa. I think
you can override the drag method in Carbon, but not really sure about
that either.
In case you haven't seen it yet, there is a technote about kiosk stu
Wow, I hope not :) Why would you want to do this?
On Aug 21, 2008, at 21:10 , Mike wrote:
Is there any way to prevent a Cocoa window from being dragged while
it is onscreen?
Thanks,
Mike
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
On Aug 19, 2008, at 13:02 , Dave wrote:
My specific questions are:
Is the NSString allocation and initWithCharacters code the best way
to do this? If so, what would the setter look like in this case? If
not what is a better way of doing it?
Hey Dave,
I don't think that initWithCharacter
On Aug 18, 2008, at 19:59 , Nick Pilch wrote:
I've been searching, but I can't find the documentation explaining
how to include frameworks in your app bundle (third-party
frameworks, for example), so that your user does not have to install
these frameworks. Could someone point me at the co
On Aug 18, 2008, at 15:49 , Ken Thomases wrote:
On Aug 18, 2008, at 12:28 PM, Jason Coco wrote:
[[thePropertiesInfoPtr->mNameString alloc]
initWithCharacters:myStringBufferPtr length:myStringSize];
Um, that's nonsensical. I think you meant:
thePropertiesInfoPtr->mNameString =
If you're using 10.5 you can try the method:
-(NSDictionary *)attributesOfItemAtPath:(NSString *)path error:
(NSError **)error
This way you will get a description of what is failing from the
NSError object. You can use it like this:
NSError *theError;
NSDictionary *fileAttributes = [manage
On Aug 18, 2008, at 10:54 , Dave wrote:
Hi,
I'm tring to create an NSString object from data contained within a
file. The following code attempts to do this. The data is read from
the file OK and all the size information etc. is OK.
Here is a code snippet:
myOSStatus = [self ReadUInt32L
On Aug 18, 2008, at 09:19 , Dave wrote:
Hi All,
I'm fairly new to Cocoa and was wondering if there are OS functions
to Copy and Clear/Fill Memory available?
I've tried searching for obvious names like MemoryZero, ZeroMemory,
CopyMemory etc. but can't seem to find anything.
bzero(3), bc
1 - 100 of 142 matches
Mail list logo