Le 20 juil. 08 à 19:54, Marc Respass a écrit :
Hi again,
I hate answering my own question but I did figure it out. I sub-
classed NSTableHeaderCell then created an instance using
initImageCell. Then it occurred to me that it seemed a bit silly. If
I can init an image cell, maybe I can jus
Le 20 juil. 08 à 19:55, Richard Nichols a écrit :
Hi
I'm looking for a simple example that will show me how to do an http
POST with user and password in cocoa.
All I want to do is send some text to a php script but it expects
the see the user and password and I'm not sure what classes to
By carefull with the basename function. Theoricaly, it require a
mutable string (char * and not const char *), so this logging function
may crash (even it for now it works).
Le 23 juil. 08 à 20:01, Nate Weaver a écrit :
This is the route I follow. I use normal NSLog() statements for
condit
Le 24 juil. 08 à 14:24, Macarov Anatoli a écrit :
HI!
Cocoa, Obj-c.
How to creat a file in the folder that has limited permissions (read-
only)?
Give me example, please.
You can use NSTask and /usr/libexec/authopen (and pipes)
See "man authopen" for details.
If it's not enought, you have t
I think Apple has one, but to find it, you may have to try to search…
http://developer.apple.com/samplecode/BetterAuthorizationSample/index.html
Le 24 juil. 08 à 15:37, Macarov Anatoli a écrit :
Someone has an example with authorization services.Le 24 juil. 08 à
14:24, Macarov Anatoli a éc
Once through your run loop is also a good place to hint to the
collector that it should collect if necessary. A non-GC app would
probably bracket the run of the run loop in an autorelease pool. A
decent technique for this is to get the underlying CFRunLoop from
the NSRunLoop (they're NO
You have to use "create and write" (-c -w)
authopen -c -w /etc/tolea.txt
And also to write some data by creating an other pipe and binding it
to the task's standard input (and then using fileHandleForWriting).
Le 28 juil. 08 à 09:46, Macarov Anatoli a écrit :
This is my code, I would give
Le 28 juil. 08 à 10:17, Ken Tozier a écrit :
On Jul 28, 2008, at 2:42 AM, Ken Ferry wrote:
Graham's suggestion is also better because -[NSGraphicsContext
setCurrentContext:] just releases the context that was previously
current, as opposed to autoreleasing it.
So this has a bug:
NSGraphics
Le 29 juil. 08 à 00:09, Charles Steinman a écrit :
--- On Mon, 7/28/08, Carter R. Harrison <[EMAIL PROTECTED]>
wrote:
Actually now that I'm looking at this more closely,
NSDictionary is
expecting an NSString for the key when inserting a value.
Your
example uses an NSValue for the key - the
Le 30 juil. 08 à 11:26, Torsten Curdt a écrit :
Where does it say that protocols can't include class methods? If
there is documentation indicating as much then there is a bug
somewhere and I'd like to know about it.
The following works as expected -- the compiler complains mightily
abou
Le 1 août 08 à 14:52, Ken Thomases a écrit :
On Aug 1, 2008, at 6:43 AM, Chris Idou wrote:
I have a Cocoa thread waiting on events in a run loop. But I want
to be able to give the waiting thread a "kick" to make it wake up
and re-load its context.
I realise I could write my own custom ru
Le 4 août 08 à 06:06, Dave DeLong a écrit :
And having experimented with this myself, AppleScript can be
horrendously slow if you need to get information on more than about 50
tracks.
I do not agree with this. I just try the following script and I
managed to get more than 4500 tracks name i
Le 4 août 08 à 12:47, Gregory Weston a écrit :
Kyle Sluder wrote:
4) Parse the iTunes Library XML files.
#4 is unsupported, but also the only way to get access to the iTunes
library when iTunes isn't running. The approach you take is dictated
by your functional requirements.
I was under t
Le 4 août 08 à 13:26, Trygve Inda a écrit :
I am transitioning some code from Carbon to Cocoa and redesigning a
lot of
how things work. I am doing a bit of low-level pixel manipulation and
wondering about speed of access to variables declared in a method vs
those
declared at the object lev
Le 4 août 08 à 14:26, Allison Newman a écrit :
Following on from my previous message, a few months back, we had a
long discussion on this list about whether the documentation was of
a good quality or not. This is an example where I find myself
completely unable to find the documentation t
Le 5 août 08 à 08:13, Gerriet M. Denkmann a écrit :
I want to get the colour of a symlink (NOT the colour of the thing
the symlinks points at).
Is there a Cocoa way to get this?
Currently I am using FSPathMakeRef (or CFURLGetFSRef) to get an
FSRef, and then FSGetCatalogInfo to get the colo
Le 5 août 08 à 13:25, Chunk 1978 a écrit :
i've localized the info.plist file, and added these keys to the
english
subfile:
LSHasLocalizedDisplayName
CFBundleDisplayName
New App Title
but it still shows my original app name...
Please read the documentation.
http://developer.apple.co
Le 5 août 08 à 19:48, Frederick Bartram a écrit :
I am having difficulty understanding the issues involved in image
drawing speed.
I have a large, ~10K x 10K image in a scrolling view. The image is
loaded as a PNG file into an NSImageView from a nib. I am getting
large differences in the
Le 5 août 08 à 21:59, Chris Hanson a écrit :
On Aug 5, 2008, at 11:19 AM, Elan Feingold wrote:
I can load the principal class of a bundle with:
NSBundle* bundleToLoad = [NSBundle bundleWithPath:@"..."];
Class exampleClass = [bundleToLoad principalClass]);
Actually, this loads the bundle an
Shouldn't be this instead (check the translations' signs) ?
[tr translateXBy:dx yBy:dy]; // center or rect will be the center of
rotation
[tr rotateByDegrees:90]; // rotate it
[tr translateXBy:-dx yBy:-dy]; // move it back
Le 6 août 08 à 08:46, Vitaly Ovchinnikov a écrit :
Hello,
I need t
Le 6 août 08 à 09:50, Bill Bumgarner a écrit :
On Aug 6, 2008, at 12:19 AM, Ralf Edmund Stranzenbach wrote:
because i'm currently facing a comparable situation - i'd like to
migrate old NeXT style mails and mailboxes and also some old
NeXTstep based applications for my personal use - i'm re
Be carefull when you mix CFType memory management, and obj-c memory
management.
It works well when you do not use GC, but may become problematic if
you do not take special care with GC code.
If I'm not wrong, it should be something like this:
[NSMakeCollectable(aCGImageRef) autorelease];
L
Le 8 août 08 à 16:17, Thomas Engelmeier a écrit :
Am 07.08.2008 um 17:24 schrieb Chris Hanson:
This appears correct, except for the fact that, for reasons known
only to Apple, although CFMakeCollectable is available in 10.4,
the trivial NSMakeCollectable macro is available only in 10.5.
Le 8 août 08 à 11:47, Finlay Dobbie a écrit :
On Thu, Aug 7, 2008 at 8:51 PM, falcon <[EMAIL PROTECTED]> wrote:
I have application written using Qt library. I have a network of
about 40
mac minis. Now I have to connect to each of these macs using ARD
and change
one parameter on main window
Le 8 août 08 à 20:56, Ken Ferry a écrit :
Hi James, Nicholas,
I still bet it's someone holding too many file descriptors open.
Nicholas, when you said this, "but I have forced the thumbnail
creation to have at most 10 files opened at the same time", what did
you mean? You can see what files
You can also create your own helper tool compiled with GC support and,
that just preflight the bundle you pass as argument and return the
result.
It's a little more works, but it's cleaner too.
Le 9 août 08 à 03:32, André Pang a écrit :
On 08/08/2008, at 3:18 PM, Chris Suter wrote:
You w
Le 9 août 08 à 10:34, Christian Giordano a écrit :
Hi guys, I'm a newbie and I'm reading a book which shows the two
different option to link programmatically a control to an action:
SEL mySelector;
mySelector = @selector(methodName:);
[myButton setAction:mySelector];
OR
SEL mySelector;
mySel
Le 10 août 08 à 00:48, Cate Tony a écrit :
This code is leaking:
- (void)saveItemExtensions:(id)sender
{
NSMutableString* itemExtensionsFilePath = [NSMutableString
stringWithString:@"~/Library/Preferences/MyApp/extensions.abc"];
NSDictionary* extensions = [NSDictionary dictionaryWithDi
Le 10 août 08 à 06:08, Nick Veys a écrit :
I'm getting some interesting results with an image mask I'm trying to
apply. I'm trying to vignette away the edges of some small images and
instead of getting transparency behind them, I'm getting the black
(presumably from the mask).
I'm simply call
Le 11 août 08 à 14:25, Antonio Nunes a écrit :
On 11 Aug 2008, at 13:14, Antonio Nunes wrote:
Will it cause a memory leak if I treat the Quartz object in the same
way as I do to all my NSObject descendants, i.e. no retains and rely
only on garbage collection?
You either take care of the obj
Le 11 août 08 à 15:29, Ron Fleckner a écrit :
On 11/08/2008, at 10:52 PM, Macarov Anatoli wrote:
HI!
Cocoa, Obj-C.
How to check the capital letter?
Hi, I don't remember if there is a Cocoa solution, but of course you
can use plain C:
NSString *str = @"Aa";
char first =
Le 11 août 08 à 22:26, Ken Ferry a écrit :
Hi Rick,
I think you might be misreading that technote.. what it says is that
trying to guess which methods are and are not safe doesn't work,
because a method that does not happen to require the windowserver in
one release may require it in another.
In practice, it's perfectly possible to access other processes memory
using public functions (it require some privileges since 10.4 intel).
But to do it you have to use the low-level mach API and that's off
topic here.
And no, code injection is not used only by virus. (see http://rentzsch.c
Le 13 août 08 à 01:34, Nick Zitzmann a écrit :
On Aug 12, 2008, at 5:28 PM, Joseph Kelly wrote:
is there a known reliable way to generate a back trace from the
current point in a given thread's call stack?
Yes. (Hint: See the NSException documentation in Leopard, and the
ExceptionHandl
Le 13 août 08 à 15:27, Kyle Sluder a écrit :
On Tue, Aug 12, 2008 at 10:14 PM, Steve Byan <[EMAIL PROTECTED]>
wrote:
Actually, the man-page is incomplete and doesn't tell you how to
read and
write another process's memory.
The manpage also fails to mention the undocumented PT_DENY_ATTACH
Le 14 août 08 à 13:53, Devon Ferns a écrit :
On 14-Aug-08, at 7:21 AM, Graham Cox wrote:
On 14 Aug 2008, at 8:58 pm, Georg Seifert wrote:
is it recommended to use @try .. @catch blocks as flow control
like it is used in Python. They say explicitly to use it rather
than do a lot of test
Le 18 août 08 à 15:19, Dave a écrit :
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.
Thanks a lot
A
Le 20 août 08 à 19:54, David Duncan a écrit :
On Aug 20, 2008, at 10:39 AM, Eric Hoaglin wrote:
http://developer.apple.com/samplecode/OpenGLScreenSnapshot/index.html
(Leopard+)
The basic technique from this sample should work on 10.4 (the
previous version of this sample did) but it wasn'
Le 21 août 08 à 00:02, Matthew Mashyna a écrit :
I have an NSTableView subclass whose only override method is
rightMouseDown. I override it so I can have it select the table row
before validating and presenting the context menu (by then passing
it up to [super rightMouseDown]).
This work
haha gros malin why free (func) does this test?
arf sorry your trusting scale is going to zero
Not sure what you're trying to say. According to the C standard, given
a variable (foo) the following are identical:
if(foo == 0)
if(foo == nil)
if(foo == NULL)
if(!foo)
if(foo == '0')
and any oth
Le 21 août 08 à 10:06, Clark Cox a écrit :
On Thu, Aug 21, 2008 at 12:21 AM, Thomas Davie <[EMAIL PROTECTED]>
wrote:
On 21 Aug 2008, at 09:06, Jules Colding wrote:
On 21/08/2008, at 01.56, John C. Randolph wrote:
On Aug 20, 2008, at 4:15 PM, Torsten Curdt wrote:
There was a common pe
Most of the authorizations question on this list have the same answer.
It's not and will never be possible to increase the rights of a
running process (for obvious security reasons). System Preferences
(your host process) run as the current user, so it cannot access
protected locations.
Ha
Le 21 août 08 à 19:06, Scott Ribe a écrit :
Wow, don't check the list for a few days and look what happens!
After all, that's why nil (and Nil) exist at all,
rather than just reusing NULL.
Actually nil exists at all because Objective-C was created *before*
NULL was
in such standard use! (
Le 23 août 08 à 13:41, Graham Cox a écrit :
I have a class for which equality can be defined as having the same
internal string value (which happens to be a UUID-turned-string). I
can easily implement isEqual: based on that but the docs say I also
need to implement -hash. Any pointers on w
Le 23 août 08 à 15:39, Graham Cox a écrit :
On 23 Aug 2008, at 9:52 pm, Jean-Daniel Dupas wrote:
Le 23 août 08 à 13:41, Graham Cox a écrit :
I have a class for which equality can be defined as having the
same internal string value (which happens to be a UUID-turned-
string). I can
Le 24 août 08 à 05:55, John C. Randolph a écrit :
On Aug 23, 2008, at 2:51 PM, Shawn Erickson wrote:
On Fri, Aug 22, 2008 at 2:54 AM, Eduardo Areitio <[EMAIL PROTECTED]> wrote:
I'm trying to read individual pixel values in a monochrome image
using
NSReadPixel, but I haven't been able to.
Le 24 août 08 à 09:29, Ananda Bollu a écrit :
Hi,
What is the best way to read and write data to a Stream.
In Java, DataInputStream and DataOutputStream classes provide various
serialization methods such as, readInt(), readLong(), readBoolean()
etc.
Is there anything equivalent for serializi
Le 25 août 08 à 12:04, Marcus a écrit :
25 aug 2008 kl. 11.03 skrev Macarov Anatoli:
When modal window is started up the application stops carrying out
other processes. How to work out this issue?
Cod:
- (void)showCustomDialog: (NSWindow *)window widi:(NSPanel
*)windowDialog
{
if (!
Le 25 août 08 à 15:18, Stéphane Sudre a écrit :
Probably a stupid question but I don't see anything in the objc
headers or in some old slides corroborating this.
When you build a project for a 64-bit architecture (such as x86_64),
does this imply the Objective-C version for this architectu
Le 25 août 08 à 16:02, Joseph Ayers a écrit :
I am interested in doing some signal processing on the audio
channels of a QuickTime Movie. I can retrieve the
buffer using MovieAudioExtractionFillBuffer, but the available
examples specify the buffer as type Byte*. I am
interested in decomposi
écrit :
Hi Jean-Daniel:
My issue is with the structure of the actual buffer and how to
access the individual audio data samples. For example,
is each data sample a UInt16 and can one count on the first sample
pointed at by the buffer pointer being the left channel, the
second sample the right ch
It' works on Leopard, but only as the documentation states:
“These environment variables are set only for applications launched
through Launch Services. If you run your executable directly from the
command line, these environment variables are not set.”
And unfortunately, Xcode does not use
Le 28 août 08 à 13:24, Christian Giordano a écrit :
Protocols seems definitely the way to go and seems to work, I'm only
getting some warnings. Basically what I did, I pass the instance
implementing the protocol with this syntax:
- (void) addListener:(id *) listener
and I get "invalid receive
Le 28 août 08 à 08:15, Gerriet M. Denkmann a écrit :
// this shows the application default icon if CFBundleIconFile =
"heiß"
// works ok for CFBundleIconFile = "hot"
- (IBAction)iconForFileN: sender;
{
NSBundle *mainBundle = [ NSBundle mainBundle ];
NSString *bundlePat
I did test with an UTF-8 one (the default encoding).
Le 28 août 08 à 17:44, Shawn Erickson a écrit :
On Thu, Aug 28, 2008 at 8:32 AM, Jean-Daniel Dupas
<[EMAIL PROTECTED]> wrote:
Probably the good one, as the Cocoa framework managed to retreive
the icon
properly. (the About Box d
Cocoa Application expects a Quit AppleEvent, not a sigterm.
SIGTERM will kill the app and it will not have any chance to save the
edited document. Try with TextEdit if you don't belive it ;-)
Actually no, since the default kill signal is TERM, apps will be
allowed to prompt to save if nece
Le 28 août 08 à 14:21, David Reitter a écrit :
On 28 Aug 2008, at 00:27, Eric Schlegel wrote:
Menus contained in NSStatusItems (and displayed on the right side
of the menubar) don't currently respond to command keys at all.
This is already reported in Radar.
Thanks, I'll stop looking t
Le 28 août 08 à 17:10, Shawn Erickson a écrit :
On Thu, Aug 28, 2008 at 5:38 AM, Gerriet M. Denkmann
<[EMAIL PROTECTED]> wrote:
But, another problem: when I run my app with CFBundleIconFile =
"heiß" the
picture in the dock is just the default app icon.
What encoding is being used for your
Le 28 août 08 à 23:00, Kyle Sluder a écrit :
On Thu, Aug 28, 2008 at 12:50 PM, Gerriet M. Denkmann
<[EMAIL PROTECTED]> wrote:
It starts with:
Just because it *says* it's encoded in UTF-8 doesn't mean it *is*.
For all you know it was saved in MacRoman.
--Kyle Sluder
So, why the Cocoa fra
Unlike java, Obj-C does not have the concept of class variable.
Your static variable is a classic C variable, and C variable are not
automatically initialized to NULL.
The first time you call init, relationshipMatch may contains anything
and may not be NULL, and so it will never be properly in
Le 1 sept. 08 à 21:18, Kyle Sluder a écrit :
On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]>
wrote:
What I want is how to use the Java idea of a class static variable
in
Objective C
Because Objective-C doesn't have class variables (as Jean-Daniel
noted), you
Le 2 sept. 08 à 00:13, Steven Noyes a écrit :
On Sep 1, 2008, at 1:38 PM, Jean-Daniel Dupas wrote:
Unlike java, Obj-C does not have the concept of class variable.
Your static variable is a classic C variable, and C variable are
not automatically initialized to NULL.
The first time you
Le 2 sept. 08 à 16:29, Clark Cox a écrit :
On Tue, Sep 2, 2008 at 12:33 AM, Jean-Daniel Dupas
<[EMAIL PROTECTED]> wrote:
Le 2 sept. 08 à 00:13, Steven Noyes a écrit :
On Sep 1, 2008, at 1:38 PM, Jean-Daniel Dupas wrote:
Unlike java, Obj-C does not have the concept of class va
Absolutly,
Setting up the main menu is not an easy task as there is no API to do
it, and for people that want to do it correctly, your article is like
the "Holy Grail" ;-)
Le 3 sept. 08 à 15:26, Jeff Johnson a écrit :
Filip,
All you have to do is create a menu? With all due respect, did
Le 3 sept. 08 à 17:17, Mike Rossetti a écrit :
Thanks for clearing that up David.
Apparently one cannot open an NSGraphicsContext within a CGContext,
but I will experiment more this evening.
I'm discovering that drawing attributed text via CTLineDraw has
significant limitation, but for m
Le 3 sept. 08 à 19:02, [EMAIL PROTECTED] a écrit :
Hi,
I'm trying to calculate the elapsed time by calling this twice and
getting the difference.
double Seconds()
{
return [[NSDate date] timeIntervalSince1970];
}
This is being called from an audio play back proc which is being
called
Le 4 sept. 08 à 19:09, Paul Archibald a écrit :
I have gotten some suggestions on a problem which require access to
standard C calls. In particular, one poster suggested that I use
some calls which require a FILE*, when all I have at this point are
NSTask, NSPipe, and NSFileHandle objects.
Le 5 sept. 08 à 17:13, Bradley Randy a écrit :
But I get the following errors when I try to compile it.
Line Location occiAQ.h:280: error:
'oracle::occi::aq::Subscription::Protocol' has a previous
declaration here
Line Location occiAQ.h:280: error:
'oracle::occi::aq::Subscription::Protoco
Le 5 sept. 08 à 21:40, Peter Hudson a écrit :
I need to set the combination of option + command +
up / down arrow in the main menu.
It does not seem to be possible to do this in interface builder.
Any suggestions ?
Peter
Yes, doing it in Interface Builder . What do you mea
Le 6 sept. 08 à 14:00, Peter N Lewis a écrit :
At 20:15 -0600 5/9/08, Dave DeLong wrote:
How on earth can I post system keyboard events (without getting a
beep)?
As Ken mentioned, first off make sure the key has somewhere to go.
After that, this is roughly the code I use in Keyboard Maestr
Le 8 sept. 08 à 00:25, Nick Zitzmann a écrit :
I've got a C data structure in a GC-enabled app. I'm deallocating
the structure when the parent object is finished, in -dealloc and -
finalize. I've found out the hard way that the data structure is not
thread-safe, and eventually causes a cras
Le 9 sept. 08 à 12:24, Alex Reynolds a écrit :
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 ar
Le 11 sept. 08 à 10:44, Frank Illenberger a écrit :
Hi there,
I migrated an existing cocoa application to run under x86_64 with
Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit but
when started in x86_64 mode, it runs about 3-4 times slower.
A shark profile reveals the foll
Le 11 sept. 08 à 13:01, Frank Illenberger a écrit :
Hi there,
I migrated an existing cocoa application to run under x86_64 with
Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit
but when started in x86_64 mode, it runs about 3-4 times slower.
A shark profile reveals the fo
Le 11 sept. 08 à 13:32, dreamcat7 a écrit :
Yes the NSMutableData needs this category method then it work.
@interface NSMutableData (charArray)
- (char*)char;
@end
@implementation NSMutableData (charArray)
- (char*)char
{
char * foo = self.mutableBytes;
return foo;
}
@end
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 -description: the
date got a time zone, so it's stored in there but how
Le 18 sept. 08 à 21:14, kiran Sanka a écrit :
Hi all
In my cocoa application i want to find out if there is a network
connection exists or not ?
-The Coneection or disconnection of the network should be notified
to my cocoa application
Any suggestions?
Use the SystemConfiguration Fr
Le 18 sept. 08 à 15:12, brodhage a écrit :
Hi,
I am developing application software for Mac and Windows.
Most of the code is developed using ObjectC - this way most of the
code can be used for both OS. Only the OS depending stuff - like
showing dialogs, menus... - is separated.
The probl
Le 18 sept. 08 à 16:15, brodhage a écrit :
Hi,
thank you very much for your quick answer, Jean-Daniel.
> If you want a complexe dialog...
Yes. So I guess CFUserNotification does not help.
> I don't understand why using NSApp for this kind of works will
have an impact on the r
Le 19 sept. 08 à 11:22, Nick Rogers a écrit :
Hi,
My cocoa app is not a document based app, but saves a binary file to
the disk.
I can set this file's name and extension and icon by going to the
Target properties and adding a new document type there.
It was working fine and the resulting
You are free to setup a window yourself , add a QTMovieView in it, and
display it as you need.
NSRect contents = [aScreen frame];
contents.origin = NSZeroPoint;
NSWindow *window = [super initWithContentRect:contents
styleMask:NSBorderlessWindowMas
Le 24 sept. 08 à 06:04, Alex Reynolds a écrit :
Is it possible to take a CGLayer and turn it into a bitmap
representation?
Create a CGBitmapContext and draw you layer into it.
Also, is it possible to grab a CGRect "subset" of a CGLayer and
append that to a new CGLayer, so that it isn't
Le 25 sept. 08 à 17:53, Oleg Krupnov a écrit :
I actually have tried this. My code looks like this (is it correct?):
@implementation Worker
- (void)threadMain:(id)data
{
runLoop = [NSRunLoop currentRunLoop];
[runLoop addPort:[NSMachPort port] forMode:NSDefaultRunLoopMode];
while(true)
{
This is a know bug. I'have already fill a bug report about it was mark
as duplicate.
In my case, it was due to an NSPathControl when I was using the
"Popup" style. It's probably an element that serializes icns image (as
the AppKit is not able to create NSImage from icns without CGSWindow.
Le 3 mars 08 à 18:18, Mattias Arrelid a écrit :
On 3 mar 2008, at 18.14, Nir Soffer wrote:
On Mar 3, 2008, at 18:24, Mattias Arrelid wrote:
I have an application that I need to restart.
Why do you want to do that?
A scenario could be that the entire contents of the .app bundle has
been
Le 4 mars 08 à 11:21, Stephane Sudre a écrit :
On 4 mars 08, at 10:28, Julien Jalon wrote:
1) Might not be a good idea to use CFStringGetCStringPtr as it
might return
NULL2) kCFStringEncodingMacRoman is likely not a good choice as the
encoding, especially for localized strings
If I were y
Le 4 mars 08 à 15:50, norio a écrit :
Hi,
I think I understand how to write data on a disk using archive and
serialization mechanism, but how about this case?
I just want to write a short value, a long value and a double value
in this order. I don't want to write anything but them.
And I
Le 4 mars 08 à 17:05, Ben Einstein a écrit :
I'm trying to use a tabless NSTabView in IB3. Before Leopard, you
could double-click the space towards the top of the view and select
the tabs, even though there was no visible tab. I also believe there
was a control in the inspector to specify
Le 4 mars 08 à 21:10, Georg Tuparev a écrit :
Folks,
I am playing with dynamic class loading... When my test apps starts,
I am creating a list of all classes (about 1700 for my ultra simple
example). After a while I am recreating the same list. This time the
list is longer (about 1800 cl
google: launchd-dev.
First result => http://lists.macosforge.org/mailman/listinfo/launchd-dev
Le 5 mars 08 à 11:52, Mike Fischer a écrit :
Am 04.03.2008 um 22:18 schrieb "Hamish Allan" <[EMAIL PROTECTED]>:
I'd look to launchd-dev, as those are the guys that deal with login
sessions and name
Hi,
To prevent your window to open at startup, uncheck the 'Visible At
Launch' box in your window settings (in Interface Builder).
I don't know a supported way to create an application that appears in
the Dock but has the same behaviour than a LSUIElement.
Le 6 mars 08 à 12:55, [EMAIL P
can create an Outlet in your
controller (and create a controller class if you do not already have
one), bind this Outlet to your window, and then do whathever you want
with your window.
Le 6 mars 08 à 13:37, [EMAIL PROTECTED] a écrit :
Hi Jean-Daniel,
I thought it would be something sim
Install the CHUD tools, and the in /Developers/Extra/PreferencePanes
you can find the processor pref pane that do what you want.
I remeber there is also some CHUD header that allow you to do it
programatically, but don't remeber where.
Le 6 mars 08 à 19:12, Jay Reynolds Freeman a écrit :
I
What did you don't understand in this moderator post ?
http://www.cocoabuilder.com/archive/message/cocoa/2008/3/8/200765
"Reposting this just to be crystal clear.
iPhone 2.0 SDK is entirely covered by NDA, including the
documentation. All of it requires login to access it at the iPhone
Dev C
I don't think you really want to access the content of a private
kernel extension.
If your drive is mounted use -[NSWorkspace iconForFile:], else you
should use Icon Manager functions to retreive the disk icon
IconRef iconRef;
OSStatus err = GetIconRef(kOnSystemDisk, kSystemIconsCreator,
Le 9 mars 08 à 13:23, Jean-Daniel Dupas a écrit :
I don't think you really want to access the content of a private
kernel extension.
If your drive is mounted use -[NSWorkspace iconForFile:], else you
should use Icon Manager functions to retreive the disk icon
IconRef iconRef;
OSS
ObjectAlloc and other Apple developement tools already record memory
calls (retain, release, alloc, ...) full trace. You really doesn't
need to reinvent the wheel to find leaks.
Le 9 mars 08 à 23:17, Tony Becker a écrit :
Agreed, I forgot to add that warning.
I was using it to put fingerpr
Le 10 mars 08 à 00:29, Stuart Malin a écrit :
Interesting approach, Tony.
However, __builtin_return_address isn't an object, so
stringWithFormat throws an exception when given the %@ token. It
should be %u (or %U ?? - I'm not sure of the difference).
You should use %p for pointer value
Le 10 mars 08 à 09:18, Trygve Inda a écrit :
I have raw pixel data in a block of memory of the form ARGB. I need to
convert this to a jpg and write it to disk. I can obviously provide
the
width and height which match the amount of pixel data.
I also need to go the other way... Reading a jpg f
Le 10 mars 08 à 15:17, [EMAIL PROTECTED] a écrit :
Followup... I tried two workarounds, both however return an
incorrect result:
// Try #1
iTunesPlaylist *currentPlaylist = [ iTunes currentPlaylist ] ;
SBElementArray *currentTracks = [currentPlaylist tracks];
int index = [currentTracks index
601 - 700 of 1202 matches
Mail list logo