Re: enabling Edit menu items in a modal window?

2009-03-01 Thread Paul Sanders
At the time I check the Edit menu, the focus ring is around my custom table view and a row is selected. NSTableView says that it implements selectAll: and deselectAll:, and just to be extra sure, I created my own that just call super, but that doesn't change any behavior. Try it in a

custom formating of NSAttributedString

2009-03-01 Thread Georg Seifert
hello, I want to apply some custom styles to a attributed string with a format bar (like in iWorks). How do I connect my controls (pulldown or checkboxes) with the attributes in the selected range of the string. Can I use binding or do I need to do it all manually (react on every

The Dock NSTimer ...

2009-03-01 Thread Mic Pringle
Hi, I have a couple of questions I was hoping someone could help me with. First you should know, my application is in two parts, one part is a daemon that runs in the background and the other part is a standard gui. 1/ Is it possible to determine if your application is in the users dock ? I

Pulldown popup button in toolbar with GC on causes console message

2009-03-01 Thread Andrew Merenbach
Hi, all, Sorry for the long subject heading. I have an Xcode project (a garbage-collected application, 10.5 SDK, 10.5 deployment target, and I myself am running 10.5.6) with xib containing a toolbar created in Interface Builder. In this toolbar is a popup button. When the popup button

Animate the way a HUD panel appears.

2009-03-01 Thread Gustavo Pizano
Hello, I have an application that has a HUD panel, now, when I click the button to show the panel the HUD panel simply appears, I was wondering if there is a way to make it appear in a diferent way, kinda the way Aperture, or iPhoto shows such panels, that they scroll down, when needed.

Re: Pulldown popup button in toolbar with GC on causes console message

2009-03-01 Thread Quincey Morris
On Mar 1, 2009, at 09:55, Andrew Merenbach wrote: MyProgram(11418,0xb0103000) malloc: free_garbage: garbage ptr = 0x10f9180, has non-zero refcount = 1 MyProgram(11418,0xb0103000) malloc: free_garbage: garbage ptr = 0x10f9da0, has non-zero refcount = 1 Is this a known issue with popup

Re: The Dock NSTimer ...

2009-03-01 Thread Quincey Morris
On Mar 1, 2009, at 09:51, Mic Pringle wrote: 1/ Is it possible to determine if your application is in the users dock ? I know I can use the dock tile class if the application is open and therefore know the application is in the dock, but what I'd like to know is if it's possible to determine if

Re: Pulldown popup button in toolbar with GC on causes console message

2009-03-01 Thread Andrew Merenbach
On Mar 1, 2009, at 10:16 AM, Quincey Morris wrote: On Mar 1, 2009, at 09:55, Andrew Merenbach wrote: MyProgram(11418,0xb0103000) malloc: free_garbage: garbage ptr = 0x10f9180, has non-zero refcount = 1 MyProgram(11418,0xb0103000) malloc: free_garbage: garbage ptr = 0x10f9da0, has non-zero

Changing the inactive selection highlight colour

2009-03-01 Thread Benjamin Dobson
Hi, In my app, I have HUD-style windows and controls. The field editor for the window has been customised to show a more appropriate selection colour. However, when the window is inactive, the selection is highlighted in the standard light grey. How can I change this colour to something

Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
Hi devs, I can't seem to get away with if(timer!=nil [timer isValid]) [timer invalidate]; if the timer object does not exist. I'm not used to the second operator of the even being evaluated if the first one evaluates false (Java, .NET). This is not the case in (Obj)C? --

How do I pop/release from within a subView back to my original/calling routine?

2009-03-01 Thread fclee
I have a mental block, here... a bit lost: I've finished doing stuff within a subView that I generated and wish to exit dealloc (pop) to the previous view (where I was). Here's where I've started, created the subView, did work within the SubView and now which to exit: -

Re: Logical and - second operator evaluated?

2009-03-01 Thread Shawn Erickson
On Sun, Mar 1, 2009 at 12:06 PM, Martijn van Exel mve...@gmail.com wrote: Hi devs, I can't seem to get away with                if(timer!=nil [timer isValid]) [timer invalidate]; if the timer object does not exist. I'm not used to the second operator of the even being evaluated if the

Re: Logical and - second operator evaluated?

2009-03-01 Thread Clark Cox
On Sun, Mar 1, 2009 at 12:06 PM, Martijn van Exel mve...@gmail.com wrote: Hi devs, I can't seem to get away with                if(timer!=nil [timer isValid]) [timer invalidate]; if the timer object does not exist. I'm not used to the second operator of the even being evaluated if the

Re: Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
On Sun, Mar 1, 2009 at 21:34, Clark Cox clarkc...@gmail.com wrote: On Sun, Mar 1, 2009 at 12:06 PM, Martijn van Exel mve...@gmail.com wrote: Hi devs, I can't seem to get away with if(timer!=nil [timer isValid]) [timer invalidate]; if the timer object does not exist.

Re: Logical and - second operator evaluated?

2009-03-01 Thread Shawn Erickson
On Sun, Mar 1, 2009 at 12:59 PM, Martijn van Exel mve...@gmail.com wrote: I'm glad the operator does what I'd expect it to do and will not evaluate the second expression if the first one evaluates false. So there's something else going on here. The whole NSTimer concept is also new to me so

Spotlight

2009-03-01 Thread Тимофей Даньшин
Hi all! I have a potentially large database with attributedStrings. Is there a way to somehow get the Spotllight find the closest matches to another string, or do i have to write the search engine myself? Thank you. Timofey. ___ Cocoa-dev

setSelectedRange doesn't work properly...

2009-03-01 Thread Тимофей Даньшин
Hello. In my NSDocument-based application I use a number of my own attributes to the NSTextStorage in that document. The funny thing is when i set the cursor to the desired point and begin typing, one of those attributes gets broken, i.e. the range containing the text that i type in doesn't

reloading IKImageBrowserView in an IBAction

2009-03-01 Thread Claus Guttesen
Hi. I read the excellent article 'Image Kit Programming Guide' at http://developer.apple.com/documentation/graphicsimaging/Conceptual/ImageKitProgrammingGuide/Introduction/chapter_1_section_1.html#//apple_ref/doc/uid/TP40004907-CH1-SW1 and have my ImageBrowser working. I want to use it as the

Re: How do I pop/release from within a subView back to myoriginal/calling routine?

2009-03-01 Thread fclee
Solution: I used the NSNotification class to send a note to the calling class to remove the source view. It works: I can pop out of the subView now. Ric. On 03/01/2009 12:10 fc...@dialup4less.com wrote .. I have a mental block, here... a bit lost: I've finished doing

Re: Logical and - second operator evaluated?

2009-03-01 Thread Martijn van Exel
On Sun, Mar 1, 2009 at 22:10, Shawn Erickson shaw...@gmail.com wrote: On Sun, Mar 1, 2009 at 12:59 PM, Martijn van Exel mve...@gmail.com wrote: [...] * The method invoked by the first timer also dismisses the UIActionSheet. * In the didDismissWithButtonIndex callback, the two timers

Re: Animate the way a HUD panel appears.

2009-03-01 Thread slasktrattena...@gmail.com
Subclass it, override orderBack and orderOut, do some funky stuff... what did you try? Fabian On Sun, Mar 1, 2009 at 7:05 PM, Gustavo Pizano gustavxcodepic...@gmail.com wrote: Hello, I have an application that has a HUD panel, now, when I click the button to show the panel the HUD panel simply

Re: Rotate NSImage to get a new NSImage, without drawing

2009-03-01 Thread Steve Christensen
On Feb 28, 2009, at 10:20 PM, Jerry Krinock wrote: On 2009 Feb 28, at 20:10, Graham Cox wrote: Create the new image, swapping width and height, lock focus onto it, apply a transform that rotates 90 degrees, and draw the first into the second. You can't do it without drawing, but the

Re: Running Cocoa applications from file servers

2009-03-01 Thread John Joyce
On Feb 25, 2009, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: On Wed, Feb 25, 2009 at 10:43 AM, Erik Buck erik.b...@sbcglobal.net wrote: Where did the fetish for installing every single application on the local hard disk come from ? Isn't it insane to have 35 installed copies

Re: Running Cocoa applications from file servers

2009-03-01 Thread Michael Ash
On Sun, Mar 1, 2009 at 5:40 PM, John Joyce dangerwillrobinsondan...@gmail.com wrote: On Feb 25, 2009, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: On Wed, Feb 25, 2009 at 10:43 AM, Erik Buck erik.b...@sbcglobal.net wrote: Where did the fetish for installing every single application

Re: enabling Edit menu items in a modal window?

2009-03-01 Thread Steve Christensen
On Mar 1, 2009, at 1:59 AM, Paul Sanders wrote: At the time I check the Edit menu, the focus ring is around my custom table view and a row is selected. NSTableView says that it implements selectAll: and deselectAll:, and just to be extra sure, I created my own that just call super, but that

Re: Rotate NSImage to get a new NSImage, without drawing

2009-03-01 Thread douglas welton
Jerry, I'll offer a couple of other alternatives: 1) Use Quartz Composer to do the transformation for you. You should be able to build a composition with just a few (2?) patches. You can even bind the parameters for the composition to controls on your UI using Interface builder. 2)

Re: Animate the way a HUD panel appears.

2009-03-01 Thread douglas welton
Gustavo, Have you looked at the documentation for NSViewAnimation? This will class gives you a number of options for manipulating several attributes (frames, alpha, etc) for windows/views. You might want to also take a look at the Reducer example, in particular the Animated TabView

Cannot manage to get auth services running

2009-03-01 Thread Development
I am trying to create a tool that will run as root to perform a simple copy and rename function. However nothing I do seems to work. I am using one of the self repairing tool examples and it fails miserably. Basically it says its going to execute with privs loged for debuging) and then

Re: do i need to create autorelease pool?

2009-03-01 Thread Memo Akten
Hi Guys, thanks for the detailed responses :) Peter, thanks for that example, I should have thought of doing a similar test myself, but I didn't, so thanks for doing that, always the best way to be sure ;) Michael, so does this mean that CFRunLoopTimer and NSTimer don't behave the same

Re: MacOS X 10.4 and 10.5

2009-03-01 Thread Vijay Kanse
I am also confused with that. Using project settings that above mentioned can we use MAC OS 10.5 SDK under 10.4 ? and if so, i am using CalCalendarStore framework that is available from 10.5. will that application work in MAC OS 10.4 ? if i compile, with Active SDK 10.4 it will give me some

Re: MacOS X 10.4 and 10.5

2009-03-01 Thread Ben Lachman
No. The SDK target only controls which version of the libraries are linked at compile time. If you try and make a call to a 10.5-only library on 10.4 you'll most likely crash. Read the cross development docs (previously linked) if you're still confused, they are very clear in my

Re: Rotate NSImage to get a new NSImage, without drawing

2009-03-01 Thread Jerry Krinock
On 2009 Mar 01, at 14:27, Steve Christensen wrote: That version only works for a ±90° rotation since you're just swapping the width and height for the rotated image size. A more generalized solution would be: Thank you, Steve. Yes, yours works for a 45° rotation whereas mine clipped.

Re: MacOS X 10.4 and 10.5

2009-03-01 Thread Vijay Malhan
Even if you compile your application with Mac OS X 10.4 project settings. The app when run on Mac OS X 10.5 will have full access to 10.5 SDK.But reverse is obviously not true. For example: If a method of a class is only available in Mac OS X 10.5 then you can write your code such that the method

Advice on building a complex user custom control

2009-03-01 Thread Oliver Charles
Hi, I've started learning Objective-C and Cocoa, and while I'm fairly experienced with programming, GUI programming is quite new to me. I'm working on a small game engine, and as such, I want to create a level editor for the game. I love the old style Doom level editors, so that's what I'm going

Re: enabling Edit menu items in a modal window?

2009-03-01 Thread Paul Sanders
I added a text field to my modal window, and when it is the first responder the cut, copy, paste and select all menu items are enabled. Just for grins I added a second NSTableView to the window and rebuilt. When that table has focus, the edit menu items are all disabled, just like for the

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-03-01 Thread Florian Soenens
Actually we are just looking for the fastest way of creating a 72 dpi image (thumbnail) of our original 400 dpi image. It seemed that CGImageSourceCreateThumbnailAtIndex was the fastest way to do this. I am not expecting an image larger than the original but the docs say that it could be