multiple UndoManagers

2008-07-05 Thread Georg Seifert
Hello, I have a rather complicated undo setting My document Object has a Array of independent graphical items (containing some properties). Each item should have its own undo/redo based of selection in the interface. So I select Item_1, modify it, select Item_2 and modify it, too. Then I

IBTool and .XIB files

2008-07-05 Thread Sam Jew
Hi everyone, I upgraded to iPhone SDK beta 8 and all of a sudden my project doesn't work. In fact, the examples don't work either. They all generate the same error message: "Something.xib" could not be handled because ibtool cannot open files of this type. Excuse me? I thought ibtool was f

Using deprecated methods

2008-07-05 Thread Keith Blount
Hi, Something that has bothered me for ages in Cocoa, but which I've always put to one side, is how to handle certain deprecated methods when supporting more than one OS. In some instances it's as simple as checking at runtime which OS is being used and using the appropriate method accordingly,

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Andreas Mayer
Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov: I didn't see "Sent Action" group. It doesn't look like an IB bug. Or it looks like a very big bug, but nobody reported it here... I couldn't find a way to add "Sent Actions" to a custom control either. Just hook it up per code in awakeFr

Re: Using deprecated methods

2008-07-05 Thread Jean-Daniel Dupas
Le 5 juil. 08 à 14:08, Keith Blount a écrit : Hi, Something that has bothered me for ages in Cocoa, but which I've always put to one side, is how to handle certain deprecated methods when supporting more than one OS. In some instances it's as simple as checking at runtime which OS is bei

Popup dismissal

2008-07-05 Thread Fabian
Hi, I need a notification when the user dismisses a popup menu _without having actually clicked on a menu item_. A clumsy way of doing this would be to check if the mouse is hovering over the menu in NSPopUpButtonCell's "popUpDismissed" method. This way I can detect if the user cancelled the opera

Re: Using deprecated methods

2008-07-05 Thread Keith Blount
Hi, Thanks for your reply. My project is set up just as you suggest and in fact I do use checks to see whether selectors are available and use the newer methods or older methods where appropriate where I can. But in the case I was talking about, there is a whole class that is unavailable - NSVi

Re: Using deprecated methods

2008-07-05 Thread David Duncan
On Jul 5, 2008, at 5:08 AM, Keith Blount wrote: I am currently overhauling printing in my application. I have a page layout accessory view and I now also want to add a print panel accessory view. My app runs on both Tiger and Leopard. - setAccessoryView: works on both Tiger and Leopard, for

Re: Using deprecated methods

2008-07-05 Thread Keith Blount
Many thanks for your reply, much appreciated. Where can I find information on creating bundles and linking them only against a certain OS? I'm obviously using the wrong search terms in both the docs and in Cocoa-dev... Under the NSBundle documentation it explains how to get a class out of an exi

Re: Popup dismissal

2008-07-05 Thread Fabian
Never mind. I figured out I can detect action dismissal with a simple boolean (actionDismissed = YES when receiving a NSPopUpButtonWillPopUpNotification, actionDismissed = NO when receiving a NSMenuWillSendActionNotification). On Sat, Jul 5, 2008 at 2:46 PM, Fabian <[EMAIL PROTECTED]> wrote: > Hi

Re: Using deprecated methods

2008-07-05 Thread Jean-Daniel Dupas
Le 5 juil. 08 à 15:46, Keith Blount a écrit : Many thanks for your reply, much appreciated. Where can I find information on creating bundles and linking them only against a certain OS? I'm obviously using the wrong search terms in both the docs and in Cocoa-dev... Under the NSBundle docume

Re: Using deprecated methods

2008-07-05 Thread Jean-Daniel Dupas
Le 5 juil. 08 à 15:56, Jean-Daniel Dupas a écrit : Le 5 juil. 08 à 15:46, Keith Blount a écrit : Many thanks for your reply, much appreciated. Where can I find information on creating bundles and linking them only against a certain OS? I'm obviously using the wrong search terms in both th

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
Thanks for the answer. I have submitted a bug. On Sat, Jul 5, 2008 at 4:18 PM, Andreas Mayer <[EMAIL PROTECTED]> wrote: > > Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov: > >> I didn't see "Sent Action" >> group. It doesn't look like an IB bug. Or it looks like a very big >> bug, but nobod

Re: NSURLConnection and buffering

2008-07-05 Thread Arvind Jain
> > Date: Fri, 4 Jul 2008 19:22:30 -0400 > From: "Michael Ash" <[EMAIL PROTECTED]> > Subject: Re: NSURLConnection and buffering > To: "Cocoa Developers" > Message-ID: ><[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8 > > On Fri, Jul 4, 2008 at 4:34 AM, Arvind Jain <[EMAIL PROT

Re: Using deprecated methods

2008-07-05 Thread Keith Blount
Thank you very much for your reply and help - very clear and much appreciated. Many thanks, Keith - Original Message From: Jean-Daniel Dupas <[EMAIL PROTECTED]> To: Jean-Daniel Dupas <[EMAIL PROTECTED]> Cc: Keith Blount <[EMAIL PROTECTED]>; Cocoa Development Sent: Saturday, July 5, 2008

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Jim Crafton
> You cannot throw C++ exceptions across Objective-C functions. If you want to > catch this exception, you will have to catch it in drawRect, and decide > there what to do with it. The earlier emails seem to mention that for 64bit apps this will not be a problem. Is that the case or did I misunder

Re: Using deprecated methods

2008-07-05 Thread Michael Ash
On Sat, Jul 5, 2008 at 8:08 AM, Keith Blount <[EMAIL PROTECTED]> wrote: > Hi, > > Something that has bothered me for ages in Cocoa, but which I've always put > to one side, is how to handle certain deprecated methods when supporting more > than one OS. In some instances it's as simple as checking

Loading a different interface

2008-07-05 Thread John Joyce
In my application, I would like to give my users the option to choose various interface styles. I've laid out my interface using a standard NSPanel as well as the HUD version. Both are suitable, but some users will prefer one over the other, of course. Currently, I have both windows in one N

Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-07-05 Thread Uli Kusterer
On 27.06.2008, at 14:56, Chilton Webb wrote: (1) If I specify that I want anything other than the main view to have a layer, that view will instantly 'pop' to the foreground in the window. However, its actual view remains in the same place in the view hierarchy. As far as I've seen so fa

command line arguments with NSWorkspace openFile

2008-07-05 Thread Jim Crafton
Is it possible to use NSWorkspace to open a file and pass in command line arguments? I can't see anything in the docs about this and I haven't found anything with google either. Thanks Jim ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Using deprecated methods

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 15:17, David Duncan wrote: To handle a case like this, you are going to have to create a bundle that you link against the 10.5 SDK and only load there. This bundle will contain your NSViewController subclass and allow you to conditionally call -setAccessoryView: on 10.4 and

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Scott Ribe
> The earlier emails seem to mention that for 64bit apps this will not > be a problem. Is that the case or did I misunderstand them? You understood correctly. The restriction I described is for 32-bit apps. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice __

Re: multiple UndoManagers

2008-07-05 Thread Quincey Morris
On Jul 5, 2008, at 04:07, Georg Seifert wrote: My document Object has a Array of independent graphical items (containing some properties). Each item should have its own undo/redo based of selection in the interface. So I select Item_1, modify it, select Item_2 and modify it, too. Then I

NSTableView and rows of different "type"

2008-07-05 Thread Erik Elmgren
Hi First some background: We are in the process of porting a multi-platform application (ERP and CRM) to cocoa. (we have a carbon client today, but also many other platforms). Because of the multi platform aspect and large number windows (about 100k windows in total for all languages) we can

Re: command line arguments with NSWorkspace openFile

2008-07-05 Thread Charles Steinman
--- On Sat, 7/5/08, Jim Crafton <[EMAIL PROTECTED]> wrote: > Is it possible to use NSWorkspace to open a file and pass in > command line arguments? I assume you mean you want to run a program with arguments. If you're trying to run a command-line program, it would be better to use NSTask rather

IKImageView crop/rotate issues

2008-07-05 Thread Janusz Sidor
Hi, I've been trying to use IKImageView, but have some issues: 1. After using rotate, image knows about changes but is still the same size as loaded, imageSize shows new size after rotate but not image itself. How can i take this picture with new size? There is nothing in documentation about tha

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 17:01, Jim Crafton wrote: You cannot throw C++ exceptions across Objective-C functions. If you want to catch this exception, you will have to catch it in drawRect, and decide there what to do with it. The earlier emails seem to mention that for 64bit apps this will not be

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Clark Cox
On Sat, Jul 5, 2008 at 10:11 AM, Uli Kusterer <[EMAIL PROTECTED]> wrote: > On 05.07.2008, at 17:01, Jim Crafton wrote: >>> >>> You cannot throw C++ exceptions across Objective-C functions. If you want >>> to >>> catch this exception, you will have to catch it in drawRect, and decide >>> there what

Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-07-05 Thread David Duncan
On Jul 5, 2008, at 8:34 AM, Uli Kusterer wrote: On 27.06.2008, at 14:56, Chilton Webb wrote: (1) If I specify that I want anything other than the main view to have a layer, that view will instantly 'pop' to the foreground in the window. However, its actual view remains in the same place in

auxiliary window doesn't show again after first show

2008-07-05 Thread Daniel Richman
Hi All, I must be missing something blatantly obvious, but here goes: I made a Preferences window whose File's Owner is a custom class: PreferencesController, which is a subclass of NSWindowController. If you click on the Preferences menu item, the window is shown by [prefController showWind

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 19:52, Clark Cox wrote: If C++ code behaves oddly in the presence of unknown exceptions, then that C++ code is broken. :) Isn't that how code always is? ;-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: auxiliary window doesn't show again after first show

2008-07-05 Thread mmalc crawford
On Jul 5, 2008, at 11:05 AM, Daniel Richman wrote: [prefController showWindow:self]; The first time you go to Preferences, the window and all the stuff on it work fine. But on subsequent attempts to open the window, nothing happens. What am I missing? Is the "Release When Closed" flag set

Re: multiple UndoManagers

2008-07-05 Thread Georg Seifert
My document Object has a Array of independent graphical items (containing some properties). Each item should have its own undo/redo based of selection in the interface. So I select Item_1, modify it, select Item_2 and modify it, too. Then I want to be able to select item_1 again and undo

Toolbar code in separate Controller?

2008-07-05 Thread John Love
Apple's SimpleToolbar code *is all* their MyDocument.m. My app would like to place the toolbar-specific code *in a separate Controller*, say "ToolbarController". This transfer does work to a limited extent, that is, the toolbar does in fact appear at the top of the window, as it should. However, *

Re: IBTool and .XIB files

2008-07-05 Thread Andrew Farmer
On 05 Jul 08, at 04:23, Sam Jew wrote: Hi everyone, I upgraded to iPhon--- iPhone development is still under NDA. Wait another week and things may change. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: multiple UndoManagers

2008-07-05 Thread Quincey Morris
On Jul 5, 2008, at 11:37, Georg Seifert wrote: But than I have just another question: If I select more than one object. All the handling of the undos of the single object I can do in the undo/redo functions of my delegate. But how do I tell the menu that the is "something" to undo? I woul

Re: auxiliary window doesn't show again after first show [solved]

2008-07-05 Thread Daniel Richman
If the window is shown immediately and the "Visible at Launch" flag is set, have you connected the 'window' outlet? This was it! Thanks so much. Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Toolbar code in separate Controller?

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 21:05, John Love wrote: Apple's SimpleToolbar code *is all* their MyDocument.m. My app would like to place the toolbar-specific code *in a separate Controller*, say "ToolbarController". This transfer does work to a limited extent, that is, the toolbar does in fact appear

Re: Output of NSHTTPCookieStorage to NSTableView

2008-07-05 Thread James Murdza
On Tue, Jul 1, 2008 at 3:29 AM, Chris Purcell <[EMAIL PROTECTED]> wrote: > How would I return domain for example? [cookie domain] But you can retrieve a dictionary of all the properties of the cookie like this: [cookie properties] NSHTTPCookie Class Reference - http://developer.apple.com/documen

Re: Focus Ring in NSBrowser Column

2008-07-05 Thread James Murdza
> - (BOOL)needsDisplay; > { > NSResponder* resp = nil; Note that there's an extra semicolon on the first line. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Focus Ring in NSBrowser Column

2008-07-05 Thread Jean-Daniel Dupas
Le 5 juil. 08 à 21:48, James Murdza a écrit : - (BOOL)needsDisplay; { NSResponder* resp = nil; Note that there's an extra semicolon on the first line. This is a valid syntax in Obj-C. You can let the semicolon for method implementation. smime.p7s Description: S/MIME cryptographic

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Chris Hanson
On Jul 3, 2008, at 11:19 PM, Vitaly Ovchinnikov wrote: After upgrade to XCode 3.0 I found out that now it is impossible. Old links are still alive (marked with yellow triangles), but I can't create a new one. I don't see "Sent action" group by right-clicking my controls. If I perform Ctrl+Drag f

Re: Loading a different interface

2008-07-05 Thread Chris Hanson
On Jul 5, 2008, at 8:30 AM, John Joyce wrote: In my application, I would like to give my users the option to choose various interface styles. I've laid out my interface using a standard NSPanel as well as the HUD version. Both are suitable, but some users will prefer one over the other, of

Bit maps from raw camera files

2008-07-05 Thread James Merkel
I notice there are now about 120 Digital camera raw formats supported by Mac OS X as of system 10.5.4. I am trying to get a bit map from these camera files so I am using: NSBitmapImageRep * imageBitMap = [NSBitmapImageRep imageRepWithContentsOfFile:theFile] For some raw files (Nikon NEF and

Re: Loading a different interface

2008-07-05 Thread John Joyce
On Jul 5, 2008, at 3:53 PM, Chris Hanson wrote: On Jul 5, 2008, at 8:30 AM, John Joyce wrote: In my application, I would like to give my users the option to choose various interface styles. I've laid out my interface using a standard NSPanel as well as the HUD version. Both are suitable,

Re: Bit maps from raw camera files

2008-07-05 Thread Chris Hanson
On Jul 5, 2008, at 2:00 PM, James Merkel wrote: So the question is how to go about reliably getting a bit map reliably form these camera raw files? Try getting a CGImageRef using ImageIO. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Bill Cheeseman
I've searched everywhere I can think of, but I'm not finding much help on how to design Cocoa frameworks for Leopard that support both retain/release and garbage collection. Can anybody supply a good link apart from the Apple documentation? Here's a specific question: My frameworks contain classes

Method Sees Populated Array As Empty

2008-07-05 Thread Mark Wales
Hello, I'm trying to get a document based app to save the contents of an array (NSMutableArray *arrayOfReferences) that is declared and initialised in the MyDocument.m. Whenever any method in MyDocument.m or other classes tries to access the arrayOfReferences it has no problems and everyt

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Chris Hanson
On Jul 5, 2008, at 2:23 PM, Bill Cheeseman wrote: So, I guess my frameworks should declare ... __strong CGEventRef myEvent; __strong AXUIElementRef myUIElement; ... if I am going to advertise the frameworks as supporting both retain/release and garbage collection. Is that right? That's c

Re: Method Sees Populated Array As Empty

2008-07-05 Thread Markus Spoettl
On Jul 5, 2008, at 2:36 PM, Mark Wales wrote: Is there any reason why a method would read an array as empty when every other method has no problems accessing it? I don't think so. More likely is that you are accessing an array that is either empty or nil. It's impossible to tell without seei

Re: garbage collection and NSConnection

2008-07-05 Thread Joan Lluch (casa)
El 04/07/2008, a las 22:54, Chris Hanson escribió: On Jul 4, 2008, at 2:25 AM, Joan Lluch (casa) wrote: First, GC makes programs go slower not because of the overhead of the garbage collection itself, which I concede that may be comparable to the retain/release calls in a non-managed env

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Bill Cheeseman
on 2008-07-05 5:56 PM, Chris Hanson at [EMAIL PROTECTED] wrote: > On Jul 5, 2008, at 2:23 PM, Bill Cheeseman wrote: > >> So, I guess my frameworks should declare ... >> >> __strong CGEventRef myEvent; >> __strong AXUIElementRef myUIElement; >> >> ... if I am going to advertise the framework

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
Chris, I have complex controls, so I don't think it's a good idea to post all the code here. Let's imagine, that I need a control that sends an action when I click it. So, the declaration will look like this: @interface MySuperControl : NSControl { // no data } // no methods @end implementatio

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
Ops, sorry. I read "control" instead of "controller". Of course I have enough IBAction's in my controller class. I can Ctrl+Drag from any standard control (NSButton or something like this). But not from the custom one. More, if I subclass standard control (like NSImageView, for example) - IB eats

Re: Method Sees Populated Array As Empty

2008-07-05 Thread Mark Wales
Is there any reason why a method would read an array as empty when every other method has no problems accessing it? I don't think so. More likely is that you are accessing an array that is either empty or nil. It's impossible to tell without seeing the code but my guess would be that you're

Capture Window/View created through NSTask

2008-07-05 Thread Michael Moore
I'm hoping someone might be able to assist me with this question. I have a Cocoa application, with an embedded command-line tool in the Resources folder. This tool is from an outside source, and I have no source code available for it. When launched, it creates its own window, and displays a vari

NSAppleScript - compileAndReturnError always breaks with EXC_BAD_ACCESS

2008-07-05 Thread Alex Wied
Greetings, I have a trivial AppleScript that I would like to compile and run under Objective-C. When I try to compile or execute it via compileAndReturnError or executeAndReturnError I'm permanetly receiving a EXC_BAD_ACCESS. Here's my code: === CODE START === - (IBAction) simpleScri

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Quincey Morris
On Jul 5, 2008, at 14:23, Bill Cheeseman wrote: Here's a specific question: My frameworks contain classes that declare instance variables derived from CFType. For example, CGEventRef and AXUIElementRef. In reading the "Instance variables" topic in the "Core Foundation Variables" section of the

Re: Method Sees Populated Array As Empty

2008-07-05 Thread Matt Neuburg
On Sat, 5 Jul 2008 22:36:07 +0100, Mark Wales <[EMAIL PROTECTED]> said: >Hello, > >I'm trying to get a document based app to save the contents of an >array (NSMutableArray *arrayOfReferences) that is declared and >initialised in the MyDocument.m. Whenever any method in MyDocument.m >or other classe

NSURLConnection timeoutInterval only works in multiples of 30 seconds

2008-07-05 Thread kanny96
Hi, I am trying to do a periodic update based on the contents of a url, but when the website is down with 5** error, I would like to not wait more than a couple of seconds. So, I wrote the following code : url = [NSURL ...]; updateTimer = [[NSTimer scheduledTimerWithTimeInterval:60.0 t

Re: Capture Window/View created through NSTask

2008-07-05 Thread Jean-Daniel Dupas
Le 6 juil. 08 à 00:43, Michael Moore a écrit : I'm hoping someone might be able to assist me with this question. I have a Cocoa application, with an embedded command-line tool in the Resources folder. This tool is from an outside source, and I have no source code available for it. When launc

Re: NSAppleScript - compileAndReturnError always breaks with EXC_BAD_ACCESS

2008-07-05 Thread Matt Neuburg
On Sun, 6 Jul 2008 00:44:19 +0200, Alex Wied <[EMAIL PROTECTED]> said: >Greetings, > >I have a trivial AppleScript that I would like to compile and run >under Objective-C. When I try to compile or execute it via >compileAndReturnError or executeAndReturnError I'm permanetly >receiving a EXC_BAD_ACC

Re: garbage collection and NSConnection

2008-07-05 Thread mmalc crawford
On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote: However, let me copy an excerpt of the Cocoa documentation on the GC algorithm that Cocoa uses. You haven't updated your documentation since the beginning of November last year. [...] The collector runs exclusively on the main threa

Re: garbage collection and NSConnection

2008-07-05 Thread Bill Bumgarner
On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote: Basically for performance reasons, the G. collector "preffers" to let memory usage grow (while it is still available) in order to avoid too many collections or to try that the user does not notice it, and in practice it generally succeeds

Key equivalents for an action without a visible object item

2008-07-05 Thread Kanny
Is it possible to define a key-equivalent for an action like in NSMenuItem but without any visible object ?  The situation is like this: I have a NSTextField in nib file of my Application-Menu-less menubar app. I want it to receive Command-v for 'paste', but since I don't have/want a menuItem

Re: Key equivalents for an action without a visible object item

2008-07-05 Thread Michael Ash
On Sat, Jul 5, 2008 at 8:14 PM, Kanny <[EMAIL PROTECTED]> wrote: > Is it possible to define a key-equivalent for an action like in NSMenuItem > but without any visible object ? > > The situation is like this: I have a NSTextField in nib file of my > Application-Menu-less menubar app. I want it to

Keyboard Shortcut for "Stop"

2008-07-05 Thread Alex Wait
It has the solid white up arrow, the apple/command symbol and what looks like the "right arrow". I press these three keys to no avail. What am I doing wrong? -- If you can't be kind, at least have the decency to be vague. ___ Cocoa-dev mailing list (C

Re: IBTool and .XIB files

2008-07-05 Thread Sam Jew
On 05 Jul 08, at 04:23, Sam Jew wrote: >> Hi everyone, >> >> I upgraded to iPhon--- >iPhone development is still under NDA. Wait another week and things >may change. Evidently the existence of this bug means I'm not doing any development for iPhone. I've seen the NDA excuse trotted out i

Re: Output of NSHTTPCookieStorage to NSTableView

2008-07-05 Thread Michael Ash
On Sun, Jun 29, 2008 at 12:46 AM, Chris Purcell <[EMAIL PROTECTED]> wrote: > Hello, > Not sure where my problem is I've tried a few things and no success. I am > trying to output NSHTTPCookieStorage *cookies array to a table view. > Whenever I call the objectValueForTableColumn:row method the app

Re: Keyboard Shortcut for "Stop"

2008-07-05 Thread Andrew Farmer
On 05 Jul 08, at 18:33, Alex Wait wrote: It has the solid white up arrow, the apple/command symbol and what looks like the "right arrow". I press these three keys to no avail. What am I doing wrong? More of an XCode question than a Cocoa question, but the symbol you're looking at is "retur

Re: IBTool and .XIB files

2008-07-05 Thread Andrew Farmer
On 05 Jul 08, at 18:39, Sam Jew wrote: On 05 Jul 08, at 04:23, Sam Jew wrote: Hi everyone, I upgraded to iPhon--- iPhone development is still under NDA. Wait another week and things may change. Evidently the existence of this bug means I'm not doing any development for iPhone. I've seen

Re: Using deprecated methods

2008-07-05 Thread Charles Srstka
On Jul 5, 2008, at 10:43 AM, Uli Kusterer wrote: On 05.07.2008, at 15:17, David Duncan wrote: To handle a case like this, you are going to have to create a bundle that you link against the 10.5 SDK and only load there. This bundle will contain your NSViewController subclass and allow you to

Re: Bit maps from raw camera files

2008-07-05 Thread James Merkel
Will look into CGImageRef using ImageIO. However, I found that if I use: imageRepsWithContentsOfFile: rather than imageRepWithContentsOfFile: I can get a bit map from all raw files that are supported by OS X. (At least for the raw files I have checked so far). The method imageRepsWithConte

Highlight Layer on Mouseover

2008-07-05 Thread Mike Rossetti
I've been putting together a drawing package using layers and having a terrific time! But I'd appreciate a bit of guidance on the recommended approach for highlighting a layer as the mouse moves over the layer. This is intended to give the user positive feedback as to which drawing elemen

Re: Using deprecated methods

2008-07-05 Thread James Merkel
On Sat, 5 Jul 2008 05:08:45 -0700 (PDT) Keith Blount wrote: Hi, Something that has bothered me for ages in Cocoa, but which I've always put to one side, is how to handle certain deprecated methods when supporting more than one OS. In some instances it's as simple as checking at runtime whi

Re: multiple UndoManagers

2008-07-05 Thread Graham Cox
I've done a lot of stuff recently with Undo in my DrawKit project, which sounds a little like what you are doing also. I have to say, having one undo manager per object sounds like a recipe for confusion. It's just not how undo is intended to work, and not how users expect Undo to work. I

[Moderator] Re: IBTool and .XIB files

2008-07-05 Thread Scott Anguish
Whether you find the NDA satisfying or not isn't terribly relevant. Discussion of the iPhone SDK is NOT allowed here. Repeated and flagrant violations such as this are forwarded to WWDR for followup. scott moderator On Jul 5, 2008, at 9:39 PM, Sam Jew wrote: On 05 Jul 08, at 04:23, Sam

Re: Method Sees Populated Array As Empty

2008-07-05 Thread Graham Cox
On 6 Jul 2008, at 8:29 am, Mark Wales wrote: @interface MyDocument : NSDocument { NSMutableArray *arrayOfReferences; } NSLog(@"%@", [self arrayOfReferences]); // <== Shows the array as empty Do you actually have an accessor method for arrayOfRef

Re: Using deprecated methods

2008-07-05 Thread Scott Anguish
On Jul 6, 2008, at 12:25 AM, James Merkel wrote: On Sat, 5 Jul 2008 05:08:45 -0700 (PDT) Keith Blount wrote: Hi, Something that has bothered me for ages in Cocoa, but which I've always put to one side, is how to handle certain deprecated methods when supporting more than one OS. In some i

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Chris Hanson
On Jul 5, 2008, at 3:52 PM, Quincey Morris wrote: The other thing worth noting is that, when GC is enabled, any CF object that is documented to be *returned* already autoreleased from a frameworks function is actually returned with a reference count of 1, so you still need to call CFMakeCol

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread mmalc crawford
On Jul 5, 2008, at 10:07 PM, Chris Hanson wrote: Can you give an example of a framework method that's documented to return an autoreleased CF object? NSBitmapImageRep: - (CGImageRef)CGImage Returns an autoreleased CGImage object (an opaque type) from the receiver’s current bitmap data.

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Chris Hanson
On Jul 5, 2008, at 11:04 PM, mmalc crawford wrote: On Jul 5, 2008, at 10:07 PM, Chris Hanson wrote: Can you give an example of a framework method that's documented to return an autoreleased CF object? NSBitmapImageRep: - (CGImageRef)CGImage Returns an autoreleased CGImage object (an opaqu

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-05 Thread Quincey Morris
On Jul 5, 2008, at 22:07, Chris Hanson wrote: On Jul 5, 2008, at 3:52 PM, Quincey Morris wrote: The other thing worth noting is that, when GC is enabled, any CF object that is documented to be *returned* already autoreleased from a frameworks function is actually returned with a reference

Re: garbage collection and NSConnection

2008-07-05 Thread Joan Lluch (casa)
El 06/07/2008, a las 2:05, mmalc crawford escribió: On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote: However, let me copy an excerpt of the Cocoa documentation on the GC algorithm that Cocoa uses. You haven't updated your documentation since the beginning of November last year.