Re: File event notification

2008-10-24 Thread Ardian Lazuardi
Is it impossible to hook the copy procedures, such like windows programmers using shellhook, cbthook, or api hook, so that we can intercept the process before system does? By using FSEvent, we can get the changed folder path. Can we get the modified filename exactly (deleted file's filenam

Re: File event notification

2008-10-24 Thread Stephen J. Butler
On Fri, Oct 24, 2008 at 3:10 AM, Ardian Lazuardi <[EMAIL PROTECTED]> wrote: > Is it impossible to hook the copy procedures, such like windows programmers > using shellhook, cbthook, or api hook, so that we can intercept the process > before system does? You've missed the point. There *is* no copy

Re: File event notification

2008-10-24 Thread Ardian Lazuardi
Hi Stephen, On Oct 24, 2008, at 5:13 PM, Stephen J. Butler wrote: On Fri, Oct 24, 2008 at 3:10 AM, Ardian Lazuardi <[EMAIL PROTECTED]> wrote: Is it impossible to hook the copy procedures, such like windows programmers using shellhook, cbthook, or api hook, so that we can intercept the proc

Fwd: Problems when putting a window between desktop and desktop icons

2008-10-24 Thread Markus Amalthea Magnuson
(I accidentally posted this directly to the poster instead of the list.) On Tue, Oct 21, 2008 at 23:09, Charles Steinman <[EMAIL PROTECTED]> wrote: > --- On Tue, 10/21/08, Markus Amalthea Magnuson <[EMAIL PROTECTED]> wrote: > >> This half transparent red color covers the desktop, but not >> the >

Re: commitEditing

2008-10-24 Thread Chris Idou
--- On Wed, 10/22/08, Ron Lue-Sang <[EMAIL PROTECTED]> wrote: > The only reason a controller would return NO for > commitEditing is that > one of *its* editors refused to commitEditing. It's not clear to me what "its editors" are. All I've got is an object with some fields, with an NSObjectCont

Framework stops working

2008-10-24 Thread Mahaboob
Hi all, I have been using the Pantomime framework for developing a mailing application. It was working well. But, recently it stoped working, means it is not firing the events serviceInitialized: messageSent: And connectionTerminated: It only fires connectionEstablished: event and not going furt

Consola application

2008-10-24 Thread parag vibhute
Hello all, I have an open source application "Consola" (which I received from one of my friend). But I do not have its source code. FYI, there was an Open Source *Bluetooth* Proximity Media Server application "Consola". This application & its source code were available around Year 2005. If anybo

Retain

2008-10-24 Thread Ron Green
If I call NSString w = [NSString stringWithFormat:@"something %i", x]; Am I now suppose to call retain on w? When I'm done I know I'm suppose to release w. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Retain

2008-10-24 Thread Jean-Daniel Dupas
All answers you need are in this guide: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html Le 24 oct. 08 à 07:24, Ron Green a écrit : If I call NSString w = [NSString stringWithFormat:@"something %i", x]; Am I now suppose to call retain on w? Wh

Re: Retain

2008-10-24 Thread Jesper Storm Bache
It depends on the lifetime of w (which is an NSString*?) is supposed to live. If you have: void foo() { NSString* w = [NSString stringWithFormat:@"something %i", x]; bar(w); } Then the answer is: You do not have to retain w (the above code is co

Re: File event notification

2008-10-24 Thread Robert Martin
You can do all this, but you'll have to set up a database/store to figure out the differences. I store the nodeID/parentID modDate and attributeChangDate as well as the path in order to get 'Delete' 'Change' 'Move' and 'Rename' - 'Add is simple! On Oct 24, 2008, at 4:31 AM, Ardian Lazuardi

Re: Retain

2008-10-24 Thread Mike Abdullah
This sort of question comes up every couple of weeks. You did not use +alloc to create the string, so you do NOT need to release it. If you try to release it, the app will crash. Any of these are correct: NSString w = [NSString stringWithFormat:@"something %i", x]; // Do stuff NSString w =

Re: Retain

2008-10-24 Thread Devon Ferns
I've done stuff like this by accident but doesn't it actually crash later on when the auto release pool runs to release memory and not actually at the release? This is a good use of NSZombies if you have strange crashes. Devon Mike Abdullah wrote: BUT NOT: NSString w = [NSString stringWit

Re: Retain

2008-10-24 Thread Dave Carrigan
On Oct 24, 2008, at 8:23 AM, Mike Abdullah wrote: NSString w = [NSString stringWithFormat:@"something %i", x]; // Do stuff [w release];// Will crash here To be pedantic, it won't crash right there. It will crash sometime later in a place completely unrelated to the location that you

Re: what do you use to make icons and similar?

2008-10-24 Thread Richard Somers
I have been using Inkscape for making images for buttons. The native Inkscape file format is svg (scalable vector graphics) with a pixel canvas. I changed the canvas units to points with a size of 32 x 32 or smaller, set the grid size to one point wide, and then draw my stuff with the vecto

Apple Developer Forums

2008-10-24 Thread Randall Meadows
It looks like we're legit to discuss now! ___ 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

Re: Retain

2008-10-24 Thread Mike Abdullah
Yeah, but I figured that's more of a minor detail. When you're getting started you just don't want it to crash; doesn't matter too much when the crash actually occurs. On 24 Oct 2008, at 16:33, Dave Carrigan wrote: On Oct 24, 2008, at 8:23 AM, Mike Abdullah wrote: NSString w = [NSString

Re: Apple Developer Forums

2008-10-24 Thread Eric Gorr
On Oct 24, 2008, at 12:15 PM, Randall Meadows wrote: It looks like we're legit to discuss now! I wonder if there will be a corresponding iphone-dev mailing list...? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Passing data to a different nib

2008-10-24 Thread Cody Brimhall
I'm not sure if this is the *best* approach for what you're trying to do, but you could use notifications (http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html ). If all you've got is two nib files loaded automatically at runtime, then I

Re: Apple Developer Forums

2008-10-24 Thread René v Amerongen
On 24 okt 2008, at 18:24, Eric Gorr wrote: On Oct 24, 2008, at 12:15 PM, Randall Meadows wrote: It looks like we're legit to discuss now! I wonder if there will be a corresponding iphone-dev mailing list...? I hope not, there is many overlaps between the al

Re: Apple Developer Forums

2008-10-24 Thread Colin Cornaby
I like the developer lists myself. It's nice to do things from an email client. On Oct 24, 2008, at 9:39 AM, René v Amerongen wrote: On 24 okt 2008, at 18:24, Eric Gorr wrote: On Oct 24, 2008, at 12:15 PM, Randall Meadows wrote: It looks like we're legit to discuss now!

Re: Problems when putting a window between desktop and desktop icons

2008-10-24 Thread Andreas Mayer
Am 24.10.2008 um 11:09 Uhr schrieb Markus Amalthea Magnuson: My window should not intercept those clicks since it is obviously behind the icons, but it does anyway. Ah. I never noticed that. I can only speculate, but I guess it's actually the background view that is handling icon selection

Re: Apple Developer Forums

2008-10-24 Thread Nick Zitzmann
On Oct 24, 2008, at 10:59 AM, Colin Cornaby wrote: I like the developer lists myself. It's nice to do things from an email client. Forums aren't too bad anymore, because many of them offer RSS, so you can at least browse threads in Mail if you use Mail as an RSS reader. But yeah, forums

Re: Strange Tiger incompatability

2008-10-24 Thread Kyle Sluder
On Wed, Oct 22, 2008 at 2:14 PM, David Burnett <[EMAIL PROTECTED]> wrote: > Does any one know if IB Value Transformers instances working in Leopard > without registration is a feature or an happy accident ? It's undocumented; it may have been added as a compatibility hack or something similar in L

No warning on float to int assignment?

2008-10-24 Thread Don Arnel
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 warning is it that I need to turn on in the comp

Re: No warning on float to int assignment?

2008-10-24 Thread Jason Coco
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

Re: No warning on float to int assignment?

2008-10-24 Thread Sean McBride
On 10/24/08 2:22 PM, Jason Coco said: >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 >> co

Re: No warning on float to int assignment?

2008-10-24 Thread Scott Ribe
> It's perfectly legal to cast a float to an integer... Legal yes, but not a bad idea to have a warning if it's done without an explicit cast. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing lis

Re: NSImage/NSImageView opacity

2008-10-24 Thread Randall Meadows
On Oct 23, 2008, at 7:53 PM, Jason Coco wrote: On Oct 23, 2008, at 21:20 , Randall Meadows wrote: The custom drawing doesn't fill up all the contents of the bounds of the view. Specifically, a black border is left around the outside of where I'm drawing. You can view a snapshot of what I'

Re: No warning on float to int assignment?

2008-10-24 Thread Chris Williams
Surely there should be a way to warn on any conversion where data is lost, even if it is not on by default. The compiler knows when this is happening, the author may not. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: NSImage/NSImageView opacity

2008-10-24 Thread Randall Meadows
On Oct 23, 2008, at 9:11 PM, Ken Ferry wrote: On Thu, Oct 23, 2008 at 6:20 PM, Randall Meadows <[EMAIL PROTECTED] pc.com> wrote: I *thought* the trick to doing this was to use clearColor, so I do this right after I create the NSImage and lock focus on it: [Boneheaded mistake pointed out in

Re: NSPredicate predicateWithFormat:

2008-10-24 Thread Keary Suska
On Oct 23, 2008, at 1:03 PM, chaitanya pandit wrote: Well i could not find any explicit explicit alloc/init method for predicate, I am using Instruments to check for memory leaks, and it shows a memory leak with the array. You would use NSComparisonPredicate for explicit creation. Anyway,

Re: Strange Tiger incompatability

2008-10-24 Thread Ken Ferry
On Fri, Oct 24, 2008 at 10:54 AM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 2:14 PM, David Burnett <[EMAIL PROTECTED]> wrote: >> Does any one know if IB Value Transformers instances working in Leopard >> without registration is a feature or an happy accident ? > > It's undocu

Re: Apple Developer Forums

2008-10-24 Thread Charles E. Heizer
Problem is, it's only for iPhone Developer, paid programs. On 10/24/08 9:15 AM, "Randall Meadows" <[EMAIL PROTECTED]> wrote: It looks like we're legit to discuss now! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: [NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-24 Thread Iceberg-Dev
On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote: On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote: Solution not found in the cocoabuilder archive. Problem: I have a list of files and folders. I can add items to this list through a standard NSOpenPanel dialog. When a folder is alrea

Re: [NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-24 Thread Corbin Dunn
On Oct 24, 2008, at 2:26 PM, Iceberg-Dev wrote: On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote: On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote: Solution not found in the cocoabuilder archive. Problem: I have a list of files and folders. I can add items to this list through a s

Re: [NSOpenPanel] How to disable folder selection but still access their contents?

2008-10-24 Thread Iceberg-Dev
On Oct 24, 2008, at 11:51 PM, Corbin Dunn wrote: On Oct 24, 2008, at 2:26 PM, Iceberg-Dev wrote: On Oct 24, 2008, at 1:20 AM, Corbin Dunn wrote: On Oct 23, 2008, at 1:38 PM, Iceberg-Dev wrote: Solution not found in the cocoabuilder archive. Problem: I have a list of files an

Rotation in CAAnimation layers

2008-10-24 Thread DKJ
Is there an easy way to provide a realistic shadow for a (non- circular) layer rotating round the z-axis? (I know layer.rotateShadow = YES is too much to hope for.) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Security - Write to protected directory

2008-10-24 Thread Dragan Milić
Hi all. Now, I really sincerely apologise for bringing this thread into life again and for probably abusing the list, since the topic is not strictly Cocoa, so if moderators mind this, just don't approve the message. But I need to ask a bit of advice related to privileged reading/writing

Re: Security - Write to protected directory

2008-10-24 Thread Nick Zitzmann
On Oct 24, 2008, at 4:52 PM, Dragan Milić wrote: Assume I created an archiving tool and a user wants to extract some files from an archive into a directory one hasn't got write permission for (e.g. /Applictions). Currently, the application shows alert sheet informing the user of "permissio

Re: NSImage/NSImageView opacity

2008-10-24 Thread Randall Meadows
On Oct 23, 2008, at 9:11 PM, Ken Ferry wrote: Last, you might be interested in -[NSView cacheDisplayInRect:toBitmapImageRep:] as an alternate way of accomplishing the end goal. Take a gander at the 10.4 AppKit release notes, that have an explanatory section on this method. Search for "NSV

Re: Security - Write to protected directory

2008-10-24 Thread Tommy Nordgren
On 3 okt 2008, at 16.39, Michael Ash wrote: ...snip Nope! AEWP is a rather broken API in more ways than one. One of the ways that it's broken is that it is *impossible* to correctly use it without a subprocess which will cooperate with you. The reason for this is that you *must* use wait4 or

Re: Rotation in CAAnimation layers

2008-10-24 Thread douglas welton
On Oct 24, 2008, at 6:50 PM, DKJ wrote: Is there an easy way to provide a realistic shadow for a (non- circular) layer rotating round the z-axis? (I know layer.rotateShadow = YES is too much to hope for.) To get a "realistic" answer, it might help if you provide a little more specific info

Re: NSImage/NSImageView opacity

2008-10-24 Thread Ken Ferry
Yes, -cacheDisplayInRect:toBitmapImageRep: is going to end up calling drawRect:. It's not meant to be invoked _from_ drawRect:. You can call that from another view, or from a controller, or whatever. -Ken On Fri, Oct 24, 2008 at 5:07 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > On Oct 23, 2

Re: MVC

2008-10-24 Thread Ian Joyner
On 24/10/2008, at 4:42 PM, Carlos Weber wrote: No one can have a complete understanding of MVC without hearing James Dempsey (an Apple engineer) explicate it: http://www.youtube.com/watch?v=YYvOGPMLVDo Excellent. And I thought MVC was Mountain View, California! Actually, I first came acros

Re: Security - Write to protected directory

2008-10-24 Thread Michael Ash
On Fri, Oct 24, 2008 at 8:46 PM, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > > On 3 okt 2008, at 16.39, Michael Ash wrote: > >> ...snip > >> Nope! AEWP is a rather broken API in more ways than one. One of the >> ways that it's broken is that it is *impossible* to correctly use it >> without a subpr

Can someone point me a Core Animation layer compositing example?

2008-10-24 Thread Michael A. Crawford
I need to learn how to take three or four Core-Animation layers and composite them on onto one another while animating, in order to simulate a complex gauge. I'm assuming this will be a lot easier than it is in Windows. The different elements (needles and such) of the gauge will be on th

Re: Apple Developer Forums

2008-10-24 Thread Stefan Arentz
On Fri, Oct 24, 2008 at 12:15 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > It looks like we're legit to discuss now! > > Personally I think this is a big joke. You need to be signed up as a paying developer to access the forum. The forum is closed. It is not ind

Removing 4 pixels

2008-10-24 Thread Dave DeLong
Hi everyone, At the top of every NSMenu I can find, with one exception (which I will get to), there are four blank pixels. These pixels separate the top of the first menuitem from the top of the menu. The one exception to this is an application's Help menu, where the first menu item (in

GC app not releasing memory until click, even if I send

2008-10-24 Thread Mark Aufflick
Hi all, I'm going mental here. I have an app, using garbage collection, that responds to distributed notifications. All the memory allocated by the method that responds to those notifications builds up (watching in top or Instruments) until a real UI event is recieved - click on a menu/window etc.

Re: GC app not releasing memory until click, even if I send

2008-10-24 Thread Kyle Sluder
On Fri, Oct 24, 2008 at 11:52 PM, Mark Aufflick <[EMAIL PROTECTED]> wrote: > Is there something special I need to do to have the garbaage > collection collect inside a notification observer? Run the run loop? --Kyle Sluder ___ Cocoa-dev mailing list (C

Disable Sorting in NSTableView

2008-10-24 Thread Grant Limberg
Is it possible to disable the user's ability to resort the rows in a table by clicking on the column header? I have a table view that stores statistics in the order they are received by the program and shouldn't be resorted. Is there a way to do this without removing the column headers?

Re: Apple Developer Forums

2008-10-24 Thread Brian Stern
On Oct 24, 2008, at 11:04 PM, Stefan Arentz wrote: On Fri, Oct 24, 2008 at 12:15 PM, Randall Meadows <[EMAIL PROTECTED] > wrote: It looks like we're legit to discuss now! Personally I think this is a big joke. But seriously, what we need is an OPEN discussion

Re: GC app not releasing memory until click, even if I send

2008-10-24 Thread Bill Bumgarner
On Oct 24, 2008, at 8:52 PM, Mark Aufflick wrote: I'm going mental here. I have an app, using garbage collection, that responds to distributed notifications. All the memory allocated by the method that responds to those notifications builds up (watching in top or Instruments) until a real UI even

Re: NSImage/NSImageView opacity

2008-10-24 Thread Randall Meadows
On Oct 24, 2008, at 8:00 PM, Ken Ferry wrote: Yes, -cacheDisplayInRect:toBitmapImageRep: is going to end up calling drawRect:. It's not meant to be invoked _from_ drawRect:. You can call that from another view, or from a controller, or whatever. That's what I'm doing; I am calling cach

Re: GC app not releasing memory until click, even if I send

2008-10-24 Thread Mark Aufflick
Of course. I was trying to get the default autorelease pool to drain it, but I just need to operate on the defaultCollerctor. Your last piece of advice alomst worked - I had to: [[NSGarbageCollector defaultCollector] collectExhaustively]; I'm not doing anything fancy with the runloop - just the

Re: Consola application

2008-10-24 Thread Marcus
Hello all, I have an open source application "Consola" (which I received from one of my friend). But I do not have its source code. FYI, there was an Open Source *Bluetooth* Proximity Media Server application "Consola". This application & its source code were available around Year 2005

Re: GC app not releasing memory until click, even if I send

2008-10-24 Thread Bill Bumgarner
Excellent. Glad that it works. Still a bug needed, though. See below... On Oct 24, 2008, at 10:18 PM, Mark Aufflick wrote: Of course. I was trying to get the default autorelease pool to drain it, but I just need to operate on the defaultCollerctor. Your last piece of advice alomst worked -