KVO and array item observation

2008-10-28 Thread Ashley Clark
I have a bid revision object that holds a to-many NSSet reference to a group of items that constitute a tree. Some of those items are roots and have a nil parent. In my bid revision object I've set up a rootItems method that uses a predicate to return a filtered set of the items with nil pa

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

2008-10-28 Thread Markus Amalthea Magnuson
On Mon, Oct 27, 2008 at 21:45, Karl Goiser <[EMAIL PROTECTED]> wrote: > Dear Markus and others, > > This is a problem that I have had with an application of mine, iCalViewer, > which displays a window on the desktop. > > What happens is that you can find a window level which draws the window > und

Exceptions vs. pointers to error objects

2008-10-28 Thread Colin Cornaby
I'm writing an API to communicate with a web service, and I was just wondering what the thinking is on exceptions vs. functions returning an NSError in some way. Basically I'm wondering what people's opinions are on a function throwing an exception on failure, vs returning an NSError object

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

2008-10-28 Thread Kai
On 28.10.2008, at 08:27, Markus Amalthea Magnuson wrote: On Mon, Oct 27, 2008 at 21:45, Karl Goiser <[EMAIL PROTECTED]> wrote: Dear Markus and others, This is a problem that I have had with an application of mine, iCalViewer, which displays a window on the desktop. What happens is that y

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Torsten Curdt
IMO that does not really answer the question :) Frankly speaking I would also rather talk on a mailing list than this forum stuff. Unless I am mistaken it doesn't even have RSS feeds. (And sorry, I couldn't check that - it was down) cheers -- Torsten __

Re: Exceptions vs. pointers to error objects

2008-10-28 Thread Charles Steinman
--- On Tue, 10/28/08, Colin Cornaby <[EMAIL PROTECTED]> wrote: > I'm writing an API to communicate with a web service, > and I was just > wondering what the thinking is on exceptions vs. functions > returning > an NSError in some way. Basically I'm wondering what > people's opinions > are on

Re: Exceptions vs. pointers to error objects

2008-10-28 Thread Stephen J. Butler
On Tue, Oct 28, 2008 at 2:58 AM, Colin Cornaby <[EMAIL PROTECTED]> wrote: > I'm writing an API to communicate with a web service, and I was just > wondering what the thinking is on exceptions vs. functions returning an > NSError in some way. Basically I'm wondering what people's opinions are on a >

Code signing validation

2008-10-28 Thread [EMAIL PROTECTED]
Hello list Having implemented code signing for my app I wanted to be able to do a quick visual check that things were as they should be. I used the following to display a code signing validation message in the app About window for both the application bundle and a couple of auxiliary execu

alpha value from NSBitmapImageRep

2008-10-28 Thread chaitanya pandit
I want to compute the alpha value of each pixel of an image. What i am doing right now is i create a NSBitmapImageRep from the image and use colorAtX: y: to get the alpha value form the color at that pixel. So i need to do this for each and every pixel in the image. I was just going through t

Re: alpha value from NSBitmapImageRep

2008-10-28 Thread Ken Ferry
Hi chaitanya, Actually, much better than accessing image data is getting the image drawing machinery to do the work for you. It will get the various image data formats right, and you're providing high level information ("do the same thing to the entire image") that may enable optimizations. Acce

Re: alpha value from NSBitmapImageRep

2008-10-28 Thread Graham Cox
On 28 Oct 2008, at 8:59 pm, chaitanya pandit wrote: unsigned char *data = [mImageRep bitmapData] , *pixel; Now how do i access the pixel information from over here? any idea? If your bitmap format is ARGB with 8 bits per component, say, then to get the value of A do: unsigned char alpha

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Colin Barrett
On Tue, Oct 28, 2008 at 1:27 AM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > IMO that does not really answer the question :) You are legally able to yes, assuming you have accepted the new NDA. However, as I understand it, your post would be off topic, as the correct place to post such questions i

Re: Exceptions vs. pointers to error objects

2008-10-28 Thread Ken Ferry
> Perhaps there is already a policy on when each is to be used. If so, please > enlighten me. :) There is a policy in Cocoa. I'm pretty sure it's documented, but I didn't find it laid out just now.. Exceptions are for things that just shouldn't happen, or that are essentially unrecoverable. Thr

Re: alpha value from NSBitmapImageRep

2008-10-28 Thread chaitanya pandit
Thanks ken, This sounds more "legal" than manually accessing the image data with some hard coded values. I created a CGContextRef as you mentioned, now how can i access the alpha value at a given point in the ref? I am totally new to CG and imaging so pl. bare with me. On 28-Oct-08, at 4:08

RE: Can we ask iPhone questions yet?

2008-10-28 Thread Karan, Cem (Civ, ARL/CISD)
> Like the subject says, can we ask iPhone questions yet? I'm > stumped and I need help. > > Thanks, > Cem Karan Thanks to everyone that replied. I put my question up at http://discussions.apple.com/thread.jspa?threadID=1769333&stqc=true so if you want to reply to it, I'll keep an eye on it ov

Re: Not so long filenames

2008-10-28 Thread Gerriet M. Denkmann
On 28 Oct 2008, at 01:39, Jeremy Pereira wrote: On 26 Oct 2008, at 09:55, Gerriet M. Denkmann wrote: On 26 Oct 2008, at 00:30, Postmaster wrote: On 14 Oct 2008, at 21:00, Gerriet M. Denkmann wrote: On 14 Oct 2008, at 18:07, Jason Coco wrote: On Oct 14, 2008, at 11:28 , Gerriet M. D

Turning off Auto Complete feature for NSTextField

2008-10-28 Thread Adil Saleem
Hi, I am encountering a small problem. I am using a simple NSTextField in my application. This textfield is editable. When user starts entering some text, the auto complete is by default ON, so on pressing escape key a list of suggestions is displayed. I don't want this feature. How can i turn

Re: Not so long filenames

2008-10-28 Thread Jean-Daniel Dupas
Le 28 oct. 08 à 12:50, Gerriet M. Denkmann a écrit : On 28 Oct 2008, at 01:39, Jeremy Pereira wrote: On 26 Oct 2008, at 09:55, Gerriet M. Denkmann wrote: On 26 Oct 2008, at 00:30, Postmaster wrote: On 14 Oct 2008, at 21:00, Gerriet M. Denkmann wrote: On 14 Oct 2008, at 18:07, Jason

Subview display problem

2008-10-28 Thread DKJ
I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; [helpView setFrameOrigin:RectCentre( [theView frame] )]; [helpView setFrameSize:NSZeroSize]; [theView addSubview:helpView]; (Rec

Re: Finding out that a volume is going away before it does

2008-10-28 Thread Francis Devereux
On 28 Oct 2008, at 05:26, Chris Suter wrote: On Tue, Oct 28, 2008 at 1:50 AM, Francis Devereux <[EMAIL PROTECTED]> wrote: My code works on 10.4 8A428 PPC (after I changed mainRunLoop to currentRunLoop), but this probably isn't much help to you because DiskArbitration.framework is private on

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 9:23 AM, DKJ <[EMAIL PROTECTED]> wrote: > I'm having no luck getting a subview to display. In the awakeFromNib of the > controller I have this: > >helpView = [[MyView alloc] init]; NSView's designated initializer is -initWithFrame: ... what happens if you use tha

filtering a tableView from a pulldown

2008-10-28 Thread Amy Heavey
I have a pulldown button, and a tableview. They both seem to be displaying the correct data, but I'd like to filter the content of the tableview based on the selection in the pulldown button. I've tried all manner of binding combinations but it doesn't seem to work. I'm a real newbie so I a

Re: Cocoa and Printing (Advanced Q)

2008-10-28 Thread Tommy Nordgren
On 27 okt 2008, at 18.42, David Duncan wrote: On Oct 26, 2008, at 3:06 PM, Tommy Nordgren wrote: A specific printer can be used ONLY by a special app. Any printer that can be seen by Print Center can be used by all applications by default. If you are a printer vendor, then you can do ad

Re: filtering a tableView from a pulldown

2008-10-28 Thread I. Savant
> I have a pulldown button, and a tableview. They both seem to be displaying > the correct data, but I'd like to filter the content of the tableview based > on the selection in the pulldown button. I've tried all manner of binding > combinations but it doesn't seem to work. This is difficult to

Re: Turning off Auto Complete feature for NSTextField

2008-10-28 Thread John Joyce
On Oct 28, 2008, at 8:42 AM, [EMAIL PROTECTED] wrote: Turning off Auto Complete feature for NSTextField To: cocoa-dev@lists.apple.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii Hi, I am encountering a small problem. I am using a simple NSTextField in my appl

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Nicko van Someren
On 28 Oct 2008, at 10:51, Colin Barrett wrote: On Tue, Oct 28, 2008 at 1:27 AM, Torsten Curdt <[EMAIL PROTECTED]> wrote: IMO that does not really answer the question :) You are legally able to yes, assuming you have accepted the new NDA. However, as I understand it, your post would be off t

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 06:54, I. Savant wrote: On Tue, Oct 28, 2008 at 9:23 AM, DKJ <[EMAIL PROTECTED]> wrote: I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; NSView's designated initializer is -init

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 10:42 AM, DKJ <[EMAIL PROTECTED]> wrote: > Good point. I changed the line to this: > >helpView = [[MyView alloc] initWithFrame:[theView frame]]; > > But the result was the same: a brief flash of colour. I also tried passing > NSZeroRect instead of [theView frame], a

Re: Can we ask iPhone questions yet?

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 10:42 AM, Nicko van Someren <[EMAIL PROTECTED]> wrote: > As such I don't see any reason whatsoever why people should not post > questions about about Cocoa Touch on this list. That said, perhaps the > moderators who were so quick to pounce on all who previously raised the

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 07:49, I. Savant wrote: logging the view's frame each time it's drawn This produces a strange result. The width of the subview's frame increases by stages to that of the superview, but its height stays constant at 14.0. All with nothing happening on the screen. __

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Nicko van Someren
On 28 Oct 2008, at 14:52, I. Savant wrote: On Tue, Oct 28, 2008 at 10:42 AM, Nicko van Someren <[EMAIL PROTECTED]> wrote: As such I don't see any reason whatsoever why people should not post questions about about Cocoa Touch on this list. That said, perhaps the moderators who were so quic

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:01 AM, DKJ <[EMAIL PROTECTED]> wrote: > This produces a strange result. The width of the subview's frame increases > by stages to that of the superview, but its height stays constant at 14.0. > All with nothing happening on the screen. Maybe I'm missing something othe

Re: Can we ask iPhone questions yet?

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:13 AM, Nicko van Someren <[EMAIL PROTECTED]> wrote: > I saw Scott's message about taking complaints to dev relations, and his > comment about things being 'off topic' but my reading of those messages > (linked below) is that they clearly referred to the people calling th

Re: Subview display problem

2008-10-28 Thread Patrick Mau
Hi DKJ, On 28.10.2008, at 14:23, DKJ wrote: I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; [helpView setFrameOrigin:RectCentre( [theView frame] )]; [helpView setFrameSize:NSZeroSize

NSTableView context dependent row colors

2008-10-28 Thread Robert Mullen
I am working on an application that uses NSTableViews for data display. The individual rows need to have context dependent coloring. I have this working reasonably well by using NSTableView:tableView:willDisplayCell:forTableColumn:row: to inspect the cells I need and then set the background

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:14, I. Savant wrote: Do away with the animation logic for now. See if it behaves as expected by setting the frames directly (without calls to the view's -animator). The subview appears for an instant, with its origin is in the centre of the superview, filling the upper-

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Nicko van Someren
On 28 Oct 2008, at 15:18, I. Savant wrote: On Tue, Oct 28, 2008 at 11:13 AM, Nicko van Someren <[EMAIL PROTECTED]> wrote: I saw Scott's message about taking complaints to dev relations, and his comment about things being 'off topic' but my reading of those messages (linked below) is that

Message Forwarding Overhead / Performance

2008-10-28 Thread Jerry Krinock
Although the documentation on message forwarding [1] explains that alot of stuff needs to happen, it does not say "Warning: Don't do this in performance-critical applications". So I made a test tool which forwarded a simple message with one integer argument to a class which would add it to

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:27 AM, DKJ <[EMAIL PROTECTED]> wrote: > I should have made clear in my first post that the animation layers of > theView are CALayer objects. Maybe I'll try hiding those. Yes, that changes things a bit. :-) I'm not convinced, though, that you have the view geometry &

Re: Code signing validation

2008-10-28 Thread David Riggle
I just pass the "-o kill" flags to codesign. That way if the app has been tampered with it won't launch. Make sure you are using Xcode 3.1 or later so the codesigning is done after the stripping. Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Finding files before app loads

2008-10-28 Thread Glover,David
Hi there, I need to locate certain files and set the state of some objects in my nib accordingly before the app is visible to the user. I'm using fileExistsAtPath to look for the files when the awakeFromNib method is invoked. The files are definitely present, but fileExistsAtPath always re

RE: Finding files before app loads

2008-10-28 Thread Glover,David
Sorry, I've found a problem creating an NSFileManager instance, but this is resolved and the file checks are now working :o) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] om] On Behalf Of Glover,David Sent: 28 October 2008 15:34 To: Cocoa Development Subject: Finding

Re: Can we ask iPhone questions yet?

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:30 AM, Nicko van Someren <[EMAIL PROTECTED]> wrote: > ... I still think it would be useful to have a clear indication from our > shadowy overlords. Agreed, though keep in mind that *our* shadowy overlords have their *own*, even *more* shadowy overlords called "Apple

Re: Finding files before app loads

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:44 AM, Glover,David <[EMAIL PROTECTED]> wrote: > Sorry, I've found a problem creating an NSFileManager instance, but this > is resolved and the file checks are now working :o) Just as an aside, are you using +[NSFileManager defaultManager]? You shouldn't have to create

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:31, I. Savant wrote: I'd turn off all layers and make sure it's working normally without them. Alas, after having the Help button method hide theView's CALayer, there's still no sign of my NSTextView subclass. Maybe I should just make my help info into a PDF file, a

Re: Turning off Auto Complete feature for NSTextField

2008-10-28 Thread Douglas Davidson
On Oct 28, 2008, at 5:59 AM, Adil Saleem wrote: I am encountering a small problem. I am using a simple NSTextField in my application. This textfield is editable. When user starts entering some text, the auto complete is by default ON, so on pressing escape key a list of suggestions is disp

Re: filtering a tableView from a pulldown

2008-10-28 Thread Amy Heavey
I can't work out what the controllers and key paths should be. The pulldown is bound as follows: content: arrangedObjects[PurchaseOrder Array Controller(NSArray Controller)] content values: Purchase ORder Array Controller arrangedObjects.orderReference The Table view has 6 columns, one of

Re: Security - Write to protected directory

2008-10-28 Thread Michael Ash
On Mon, Oct 27, 2008 at 5:43 PM, Michael Nickerson <[EMAIL PROTECTED]> wrote: > > On Oct 27, 2008, at 12:52 AM, Michael Ash wrote: > >> On Mon, Oct 27, 2008 at 12:07 AM, Michael Nickerson >> <[EMAIL PROTECTED]> wrote: >>> >>> You can always set things up to ignore child processes: >>> signal( SIGCH

Re: Documentation of NSArchiver streamtyped format

2008-10-28 Thread Michael Ash
On Mon, Oct 27, 2008 at 2:25 PM, Gregor Jasny <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for documentation of the binary format that is written by > NSArchiver. The file utility tells me that it's called > "NeXT/Apple typedstream data, little endian, version 4, system 1000". I'm not aware th

RE: Finding files before app loads

2008-10-28 Thread Glover,David
I am now using [NSFileManager defaultManager], and all is working well (noob!) :o) -Original Message- From: I. Savant [mailto:[EMAIL PROTECTED] Sent: 28 October 2008 15:49 To: Glover,David Cc: Cocoa Development Subject: Re: Finding files before app loads On Tue, Oct 28, 2008 at 11:44 AM,

Re: Message Forwarding Overhead / Performance

2008-10-28 Thread Bill Bumgarner
On Oct 28, 2008, at 8:30 AM, Jerry Krinock wrote: Although the documentation on message forwarding [1] explains that alot of stuff needs to happen, it does not say "Warning: Don't do this in performance-critical applications". So I made a test tool which forwarded a simple message with one

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:55, DKJ wrote: Maybe I should just make my help info into a PDF file, and display that on a CATextLayer. Oops, it's the contents property of a CALayer I was thinking of here. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: filtering a tableView from a pulldown

2008-10-28 Thread I. Savant
> The pulldown is bound as follows: > content: arrangedObjects[PurchaseOrder Array Controller(NSArray Controller)] > content values: Purchase ORder Array Controller > arrangedObjects.orderReference These bindings seem fine. How about selection? One of the popup's selection bindings should be bou

Re: Finding files before app loads

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 12:09 PM, Glover,David <[EMAIL PROTECTED]> wrote: > I am now using [NSFileManager defaultManager], and all is working well > (noob!) :o) There are a lot of objects like this that follow the singleton design pattern. Always consult the documentation when using an unfamili

. Re: Code signing validation

2008-10-28 Thread [EMAIL PROTECTED]
I am aware of the -o kill flag but I am not sure that killing my code stone dead is what I require in this case. Any resource change, even a removed localisation would then be fatal. For me a string representation of the code signing is more of a sanity check. I just pass the "-o kill" flags

Re: Message Forwarding Overhead / Performance

2008-10-28 Thread Michael Ash
On Tue, Oct 28, 2008 at 11:30 AM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > Although the documentation on message forwarding [1] explains that alot of > stuff needs to happen, it does not say "Warning: Don't do this in > performance-critical applications". Such a warning would be foolish, since t

Re: Turning off Auto Complete feature for NSTextField

2008-10-28 Thread Adil Saleem
Thank you, implementing the delegate method and returning nothing from it worked. By the way, this is pretty basic stuff. I think there should have been a line or two about it in the NSTextField documentation. Thank you. --- On Tue, 10/28/08, John Joyce <[EMAIL PROTECTED]> wrote: From: John

Re: Turning off Auto Complete feature for NSTextField

2008-10-28 Thread Douglas Davidson
On Oct 28, 2008, at 10:37 AM, Adil Saleem wrote: Thank you, implementing the delegate method and returning nothing from it worked. By the way, this is pretty basic stuff. I think there should have been a line or two about it in the NSTextField documentation. Feel free to file a bug again

Re: Can we ask iPhone questions yet? - YES

2008-10-28 Thread dreamcat7
Hello! I posted a number questions to this discussion list. They were all questions about programming in the Cocoa environment. Sometimes my questions have been ignored / not replied to, however this is mostly because of my own poor writing skills rather than anything most siniister. Ther

Re: Code signing validation

2008-10-28 Thread Conor
> even a removed localisation would then be fatal Just a clarification: removing a localization does not affect the signature (http://atomic-bird.com/blog/2007/11/leopard-code-signing-questions-and-answers ). Regards, Conor ___ Cocoa-dev mailing l

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Scott Anguish
I've asked for clarification. In the meantime, this type of feedback should be sent to cocoa-dev- admins rather than to the list at large On 28-Oct-08, at 10:42 AM, Nicko van Someren wrote: On 28 Oct 2008, at 10:51, Colin Barrett wrote: On Tue, Oct 28, 2008 at 1:27 AM, Torsten Curdt <[EMAI

ASL & Unicode in Xcode's Console

2008-10-28 Thread Karl Moskowski
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 often, but I'm wondering if it's fixable. For example

[moderator] Re: Can we ask iPhone questions yet? - YES

2008-10-28 Thread Scott Anguish
Please, take this discussion off-list. Either to cocoa-dev-admins, or to private email. Discussing this here isn't going to solve the problem, and it isn't helping with the signal to noise ratio. I'll post new guidelines for the list just as soon as I have them. scott [moderator] On 28-O

Re: Why "self"? (Was: Newbie: Referencing Objects)

2008-10-28 Thread Siavash
Coming from a Flex/Flash background I will have to say that there is BIG differences between ActionScript 2.0 and 3.0. AS 3.0 is a powerful OOP language and AS 2.0 is not. That being said, the same object oriented principles do apply in ActionScript 3.0 the same as Obj-C and the Cocoa Frame

Binding question

2008-10-28 Thread Jean-Nicolas Jolivet
I'm reading about binding and KVC/KVO... and I have a question for which I can't seem to find an answer... I'll use a simple example, it'll be easier to explain that way... Let's say I have a simple class called "File"... my File class has a property called filePath which is an NSString repres

Re: Binding question

2008-10-28 Thread David Duncan
On Oct 28, 2008, at 12:19 AM, Jean-Nicolas Jolivet wrote: Now, assuming I want to bind an array of those File objects to a Table View, however, what I would like to display in the table's column is not the complete path of the file, but just the file name (that I get with [filePath lastPath

Re: Binding question

2008-10-28 Thread Quincey Morris
On Oct 28, 2008, at 00:19, Jean-Nicolas Jolivet wrote: Is it ok to bind my column to a property that is, in fact, not a property but just a method that returns a string... or should I create an actual instance variable "NSString *fileName" with a regular getter and setter? A property

Re: NSPredicateEditor error

2008-10-28 Thread Peter Ammon
On Oct 27, 2008, at 10:07 PM, Chris Idou wrote: I'm getting the following error: In , different number of items (3) than predicate template views (4) for template 0x12487e0: [move:] [] NSStringAttributeType> From experimenting, the only difference between the NSPredicateEditorRowTemplat

Re: Binding question

2008-10-28 Thread Jean-Nicolas Jolivet
Thanks a lot, this was extremely helpful! One more thing, you mentioned the term "KVO Compliance"... I understand that this means to send the proper notifications when a change to my property has been made... But: would it be considered bad practice if my file class does have a property that

Re: Binding question

2008-10-28 Thread Jean-Nicolas Jolivet
Mmmm seems like value transformer would be another way to do it! I will definitely look into both methods! Since my property is in fact only used for display purposes, I guess it would make sense to use a transformer to display it... Jean-Nicolas Jolivet David Duncan wrote: On Oct 28, 2008,

Re: Code signing validation

2008-10-28 Thread Jean-Daniel Dupas
You may fill a feature request to ask Apple to publish this API that is part of the Security Framework: http://www.opensource.apple.com/darwinsource/10.5.5/libsecurity_codesigning-33803/lib/SecStaticCode.h Le 28 oct. 08 à 10:36, [EMAIL PROTECTED] a écrit : Hello list Having implemented co

Re: Binding question

2008-10-28 Thread Quincey Morris
On Oct 28, 2008, at 12:30, Jean-Nicolas Jolivet wrote: One more thing, you mentioned the term "KVO Compliance"... I understand that this means to send the proper notifications when a change to my property has been made... But: would it be considered bad practice if my file class does have

Re: ASL & Unicode in Xcode's Console

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

NSTableView right clicked row

2008-10-28 Thread chaitanya pandit
Hi list, I have a NSTableView, and i display a menu when the user right clicks a row, this menu allows the user to delete that item. My problem is, how do i get the row which was right clicked? Consider this: currently the row#1 is selected and the user right clicks row#3 the row#3's cell wi

Getting localized NSPredicateEditor

2008-10-28 Thread Markus Spoettl
Hello List, is there a way to make NSPredicateEditor play nice with localized versions of an application, meaning that it's rule operators and criteria are translated to the language the rest of the application is using? Right now it appears that NSPredicateEditor uses English operator

Re: Binding question

2008-10-28 Thread Jean-Nicolas Jolivet
Well, I think that pretty much answers all my questions! Thanks a lot for the detailed explanation! I understand the KVC/KVO principle much better now! :) Jean-Nicolas Jolivet Quincey Morris wrote: On Oct 28, 2008, at 12:30, Jean-Nicolas Jolivet wrote: One more thing, you mentioned the term

Re: ASL & Unicode in Xcode's Console

2008-10-28 Thread Karl Moskowski
On 28-Oct-08, at 4:03 PM, Jason Coco wrote: This is a known issue... you can see where the mangling happens in the source code online when writing to stderr... the characters are properly encoded when sent to syslog and will show up correctly in asl queries and the console application, as

Re: Binding question

2008-10-28 Thread Quincey Morris
On Oct 28, 2008, at 12:58, Quincey Morris wrote: return [NSSet set withObject: @"filePath"]; Er, I meant: return [NSSet setWithObject: @"filePath"]; Also, I think it's worth adding that it's also not bad practice to have properties that are not KVO-complia

Re: NSTableView right clicked row

2008-10-28 Thread Randall Meadows
On Oct 28, 2008, at 2:11 PM, chaitanya pandit wrote: Hi list, I have a NSTableView, and i display a menu when the user right clicks a row, this menu allows the user to delete that item. My problem is, how do i get the row which was right clicked? Consider this: currently the row#1 is selecte

Re: NSTableView right clicked row

2008-10-28 Thread chaitanya pandit
Thanks Randall, funny that my subject says "...clicked row" and i missed clickedRow :-) On 29-Oct-08, at 1:51 AM, Randall Meadows wrote: On Oct 28, 2008, at 2:11 PM, chaitanya pandit wrote: Hi list, I have a NSTableView, and i display a menu when the user right clicks a row, this menu all

Re: NSTableView right clicked row

2008-10-28 Thread Corbin Dunn
Note that the documentation is slightly wrong, as it is also valid when the menu pops up. Please see the "DragNDropOutlineView" demo app which shows how to properly create a dynamic contextual menu. ..corbin On Oct 28, 2008, at 1:34 PM, chaitanya pandit wrote: Thanks Randall, funny that

Re: ASL & Unicode in Xcode's Console

2008-10-28 Thread Sean McBride
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 = { 0xE3, 0x81, 0x82, 0x00 }; >NSLog(@"%@", [NSString stringWit

Open Window from Input Manager

2008-10-28 Thread Daniel
Hi, I'm working on a project for inserting special characters in text fields in all Cocoa apps by means of an Input Manager. After a given trigger/shortcut I have the need to open a window/panel, but I don't get it. I've tried to load a NIB file, but the Console reported -[NSWindowController lo

Controller and NIB

2008-10-28 Thread J. Todd Slack
Hi All, I have a controller.m and it has an awakeFromNib method. I have a NIB that is loaded on startup (specified in info.plist) I have code that is not getting called in awakeFromNib when the Nib is loaded. What am I forgetting to setup? I need to run some code after the nib has loaded.

Re: Getting localized NSPredicateEditor

2008-10-28 Thread Peter Ammon
On Oct 28, 2008, at 1:12 PM, Markus Spoettl wrote: Hello List, is there a way to make NSPredicateEditor play nice with localized versions of an application, meaning that it's rule operators and criteria are translated to the language the rest of the application is using? Right now it

Getting available free disk space on disk image

2008-10-28 Thread Paul Archibald
This is pretty obscure, I think. My app makes files which can be quite large. It also allows the user to distribute copies of those files to various locations. So, to test this I have tried creating and mounting a disk image which I tried making a copy to. The problem is that it seems I c

Re: Getting available free disk space on disk image

2008-10-28 Thread Clark Cox
On Tue, Oct 28, 2008 at 2:15 PM, Paul Archibald <[EMAIL PROTECTED]> wrote: > This is pretty obscure, I think. > > My app makes files which can be quite large. It also allows the user to > distribute copies of those files to various locations. So, to test this I > have tried creating and mounting a

Getting a file's icon

2008-10-28 Thread Jean-Nicolas Jolivet
I was wondering how I can get an "NSImage" from a file's icon (assuming I have that file's path)... I've read about FileWrapper's icon method ([fileWrapper icon]) which returns exactly what I need, but I'm not really familiar with file wrappers and from what I understand from the Class documen

Re: Getting a file's icon

2008-10-28 Thread Dave DeLong
NSWorkspace has: - (NSImage *)iconForFile:(NSString *)fullPath HTH, Dave On Oct 28, 2008, at 3:20 PM, Jean-Nicolas Jolivet wrote: I was wondering how I can get an "NSImage" from a file's icon (assuming I have that file's path)... ___ Cocoa-dev m

Re: KVO and array item observation

2008-10-28 Thread Ashley Clark
On Oct 28, 2008, at 2:13 AM, Ashley Clark wrote: I have a bid revision object that holds a to-many NSSet reference to a group of items that constitute a tree. Some of those items are roots and have a nil parent. In my bid revision object I've set up a rootItems method that uses a predicate

Sage advice

2008-10-28 Thread DKJ
When I was but a newbie, I heard a wise man say, "When using CALayers, Put NSViews away." Yet I set a CALayer, Then added NSView; Now many hours later, I wail, "T'is true, t'is true!" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Sage advice

2008-10-28 Thread Alex Kac
One question I have that maybe this list can help me understand. If you have views that are layer backed - why would one use any of the view methods instead of the layer methods? I have to admit in some ways I am somewhat perplexed why a CALayer doesn't replace the view itself completely. T

Re: Controller and NIB

2008-10-28 Thread Nick Zitzmann
On Oct 28, 2008, at 3:09 PM, J. Todd Slack wrote: I have a controller.m and it has an awakeFromNib method. I have a NIB that is loaded on startup (specified in info.plist) I have code that is not getting called in awakeFromNib when the Nib is loaded. What am I forgetting to setup? -awa

Re: performSelectorOnMainThread and exceptions

2008-10-28 Thread [EMAIL PROTECTED]
At 6:51 PM -0500 10/27/08, Ken Thomases wrote: On Oct 27, 2008, at 4:05 PM, [EMAIL PROTECTED] wrote: if i call -[anObject performSelectorOnMainThread:aSelector withObject:nil waitUntilDone:NO] and then later throw an exception (of my own), which i catch, the deferred execution of aSelector ne

Re: Getting available free disk space on disk image

2008-10-28 Thread Paul Archibald
Oooops. It looks like I lied. Actually, I am using [[[myFileManager fileSystemAttributesAtPath:[mountedDiskImagePath stringByDeletingLastPathComponent] ...] I think it was because sometimes the path included a filename. I am going to change it to use the full path. I never

Re: Controller and NIB

2008-10-28 Thread J. Todd Slack
Hi Nick, On Oct 28, 2008, at 3:09 PM, J. Todd Slack wrote: I have a controller.m and it has an awakeFromNib method. I have a NIB that is loaded on startup (specified in info.plist) I have code that is not getting called in awakeFromNib when the Nib is loaded. What am I forgetting to setu

Re: Controller and NIB

2008-10-28 Thread Nick Zitzmann
On Oct 28, 2008, at 4:09 PM, J. Todd Slack wrote: What is a full proof way to have code executed when a NIB is loaded? There aren't any notifications for loading nibs other than - awakeFromNib. When my MainMenu.nib displays its Window, I want to execute some code. You could do a one-ti

Re: Message Forwarding Overhead / Performance

2008-10-28 Thread Jerry Krinock
On 2008 Oct, 28, at 9:09, Bill Bumgarner wrote: That would not surprise me. An absolute microseconds overhead isn't a terribly useful measure without knowing the total # of microseconds. In general, measuring as a factor of speed -- 1.2x 20x 200x is more widely applicable (tends to be m

Re: Controller and NIB

2008-10-28 Thread Graham Cox
On 29 Oct 2008, at 9:09 am, J. Todd Slack wrote: What is a full proof way to have code executed when a NIB is loaded? When my MainMenu.nib displays its Window, I want to execute some code. If you have an object in the nib, its -awakeFromNib method will be called. The object can be an inst

Re: NSPredicateEditor error

2008-10-28 Thread Chris Idou
Yes, I thought I had an NSButton, but it turned out I'd wrongly put in a NSPopupButton. --- On Tue, 10/28/08, Peter Ammon <[EMAIL PROTECTED]> wrote: > From: Peter Ammon <[EMAIL PROTECTED]> > Subject: Re: NSPredicateEditor error > To: [EMAIL PROTECTED] > Cc: cocoa-dev@lists.apple.com > Date: Tu

  1   2   >