Re: [iPhone] Search control like in App Store

2009-01-06 Thread Martijn van Exel
Thanks - I looked into the TableSearch sample project and it seems to give me enough pointers to implement what I want.I'm also learning a lot from the UICatalog sample. I tend to stay away from Interface Builder, as is provides more confusion than solutions, IMO. Martijn On Wed, Jan 7, 2009 at 0

Re: Repost Programmaric NSTextField not editable

2009-01-06 Thread livinginlosangeles
Unfortunately that didn't work. I moved the scrollview to its own window/windowcontroller, and the textfields that sit within the scrollview do allow me to edit them. What happens if you (explicitly?) pass binding option NSConditionallySetsEditableBindingOption with value NO? HTH, Keary Su

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread Gordon Apple
Try turning on garbage collection for CALayerEssentials and tell me if the composition layer runs. It doesn't here. On 1/6/09 6:07 PM, "David Duncan" wrote: > On Jan 6, 2009, at 3:29 PM, Gordon Apple wrote: > >> The only differences I can figure out is that Essentials loads it in >> awakeFrom

Re: [iPhone] Search control like in App Store

2009-01-06 Thread Robert Marini
UISearchBar is a standard cocoa touch control. -rob. On Jan 6, 2009, at 7:35 AM, Martijn van Exel wrote: Hi all, I'm looking to implement a user selection from a large number of items contained in a deep hierarchy (a taxonomy of species) for the iPhone. The hierarchy is too deep for a drill-do

"Cannot finalize a class object"

2009-01-06 Thread Nick Zitzmann
I've searched around and found nothing useful. I'm working on a non- GUI Foundation application (thus no NSApplication or window server connection), and thought I'd turn on GC in the app. The first thing it does is it calls objc_startCollectorThread() at the top of main(). Then later on in m

Re: 2-pixel borders in NSSplitView - I want 1 pixel. [SOLVED]

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 3:38 pm, Brandon Walkin wrote: NSSplitView's thin style produces 1 pt thick dividers. You can verify this by asking the split view for it's -dividerThickness. What's likely happening in your document is that one of your subviews has it's border style set to something othe

Re: Memory Management to NSError

2009-01-06 Thread Dong Feng
Thank you all for the answers. 2009/1/6 Dong Feng : > How shall we handle the NSError object returned directly or indirectly > (through out parameter)? Shall it be released after use? I checked > the example code in Apple document but never see a returned NSError > object get released. > ___

Re: 2-pixel borders in NSSplitView - I want 1 pixel.

2009-01-06 Thread Brandon Walkin
NSSplitView's thin style produces 1 pt thick dividers. You can verify this by asking the split view for it's -dividerThickness. What's likely happening in your document is that one of your subviews has it's border style set to something other than "none" in IB. Your divider would appear to

Re: setTextColor, display string, then set it back not working

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 3:10 pm, Walker Argendeli wrote: Further question though, other than kicking off a timer, is there a way I could get the text to flash on the screen red for a second, or is a timer the only way to accomplish that? You could do it this way: [myTextField performSelector:

Re: Programatically locking user screen

2009-01-06 Thread Walker Argendeli
What you're talking about is called kiosk mode, and there's compromises no matter how you go around it, but if you're intending the software for use in an instructional environment where other use of the computer shouldn't be vital while your app is running, then the impact shouldn't be an

Re: How to get the current view controller in iPhone application

2009-01-06 Thread Dave DeLong
Well, if you're using a TabBarController and a Navigation Controller, then theoretically you're having to use a ViewController to controller whatever is on the screen. That means that in almost all circumstances (the exception being threaded code), the current view controller would be

Re: Binary search on sorted NSArray in Cocoa?

2009-01-06 Thread Ken Thomases
On Jan 6, 2009, at 10:42 AM, Karan, Cem (Civ, ARL/CISD) wrote: I know I'm being pedantic, but just to make sure, will the following code work? // mySortedArray is an NSArray of NSString instances that has been sorted // via caseInsensitiveCompare:. [...] CFRange arrayRan

How to get the current view controller in iPhone application

2009-01-06 Thread Tharindu Madushanka
Hi Can I get the class type of the current view controller running in the application, I have Tab Controller and Navigation Controller in my application, at some time I need to get the current view controller using code, can any body please tell me a method or code segment to do this. isKindOfClass

Re: Asyncronous message handling

2009-01-06 Thread Keary Suska
On Jan 6, 2009, at 11:14 AM, Mohan Parthasarathy wrote: Let us say that there are two objects A and B. 1) Object A produces some data 2) Object B consumes the data produced by object A When object B sends a message to object A for fetching the data, the data is not available immediately. Wh

Re: setTextColor, display string, then set it back not working

2009-01-06 Thread Walker Argendeli
I can't believe I didn't realize that. Right now, I've got it set so that the last thing that block of code does is change the color to red. The code is an if block, so if the value isn't zero-length, it will continue on. Then, I have it change the color bak to black again, successfully

Re: Repost Programmaric NSTextField not editable

2009-01-06 Thread Keary Suska
On Jan 6, 2009, at 5:12 PM, livinginlosange...@mac.com wrote: I want to display a programmatic list of NSTextfields in a view that is enclosed in a scrollview. I have a tabview whose view contains a scrollview which contains my custom view that I wish to display NSTextFields on. I can crea

2-pixel borders in NSSplitView - I want 1 pixel.

2009-01-06 Thread Graham Cox
My main document uses a split view with a main content area and a source-style list. I'm using the "thin" style of split view along with the excellent BWToolbarButton to achieve a standard Apple-ish look. However, the split view ends up with a 2-pixel split bar, whereas all other apps I've

Switching Views on the iPhone

2009-01-06 Thread Steve Wetzel
I am trying to switch views in a view based application. I have a button on the main view and in the ViewController code for that view I have the following: -(IBAction)settings:(id)sender { if(self.settingsViewController == nil) { SettingsViewController *settings = [[

Re: Memory Management to NSError

2009-01-06 Thread Ken Thomases
On Jan 5, 2009, at 8:16 PM, Dong Feng wrote: How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example code in Apple document but never see a returned NSError object get released. Others have already pr

Re: Programmatically locking user screen

2009-01-06 Thread Kyle Sluder
You might want to look at TN2062, "Guide to Creating Kiosks on Mac OS X" ( http://developer.apple.com/technotes/tn2002/tn2062.html ) for more information on accomplishing goals related to your product. Jim Dusseau has directly addressed your question, but the technote might be helpful for further

Re: How to get slider events as it moves?

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 11:25 am, Marcelo Cicconet wrote: Is there a way to change this property via Interface Builder? Yes, just check the "continuous" box. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: setTextColor, display string, then set it back not working

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 7:34 am, Walker Argendeli wrote: But if I uncomment the last line again, countDisplay remains black, displaying the message in black instead of red. What's going on? // Set display text to red for zero-length warning... [countDisplay setTextColor:[NSColor r

Re: Design Advice - Bread Crumbs, NSPathControl

2009-01-06 Thread Mudi Dandan
Hi Rob, Yes, you can do it by subclassing NSPathControl and providing a custom NSPathComponentCell. I have done it that way too, see the result here: http://www.binarynights.com/blog/wp-content/uploads/picture-9.png . Though the height cannot be set from IB you can change it runtime calli

Re: Graphics "playback" suggestion?

2009-01-06 Thread Ken Thomases
On Jan 5, 2009, at 11:09 PM, Robert Monaghan wrote: I am trying to figure out what the best method is, to playback "generated" graphics. I am downloading image data over ethernet, and then processing the imagery. Currently I am creating a NSBitmapImageRep, and populating the buffer with m

Spell Checking in an iPhone App

2009-01-06 Thread Elmer Axelson
Hello. I am working on a little application for the iPhone and I want to use the built-in functionality that is used to check spelling. At least I hope it is built in. I found a Cocoa class, NSSpellChecker, in the AppKit framework but it seems that this is only applicable for Mac OS pr

NSArchiver binary format

2009-01-06 Thread Stefan Reitshamer
I want to read the "album data" in my iPhoto Library DB (Library6.iPhoto) -- the "dbAL" section. The 2nd-13th bytes are \00bstreamtyped so it looks like an "old archive" (not NSKeyedArchiver-style) according to the "Archives and Serializations Programming Guide for Cocoa". If I try to una

How to get slider events as it moves?

2009-01-06 Thread Marcelo Cicconet
Hi. According to Davidson's book Learning Cocoa With Objective-C, "slider issues events to the application as it moves". But that does not occurs in my apps. I'm just getting an event at mouse-down time. I found that this behavior is controlled by "prefersTrackingUntilMouseUp" NSSliderCell's, whose

Re: Programmatically locking user screen

2009-01-06 Thread Jim Dusseau
What I've done in the past is to cover all screens with a floating borderless window. On Jan 6, 2009, at 12:24 AM, Ashish Tiwari wrote: Hi All, How can I lock user screen (using cocoa+objC) that just a quote appears at screen and user can not use their machine until my software unlocks

setTextColor, display string, then set it back not working

2009-01-06 Thread Walker Argendeli
Ok, so I have a NSTextField (a label) called countDisplay, and when a zero-length string is entered into another text field, I'd like to change the color of countDisplay to red, display a message, and change back to black again. Only problem is that it displays in black no matter what. Wh

Large Core Data memory allocations for small rows

2009-01-06 Thread Benjamin Rister
We're running into a situation where Core Data is making very large memory allocations when faulting in small amounts of data. The entity has: - 2x Date - Int16 - 4x Int32 - Boolean - String - to-one relationship - String (in a subentity) - to-one relationship (in a subentity)

setContentAspectRatio on window

2009-01-06 Thread Richard Bannister
Folks, I'm using setContentAspectRatio to constrain the dimensions of a window to either 4:3 or 16:9. However, I'd also like the ability to subsequently remove the constraint altogether. If I'm reading the API right then I should be able to do a setContentAspectRatio with a NSSize specify

Re: Cocoa-dev Digest, Vol 6, Issue 9

2009-01-06 Thread João Varela
On 2009/01/06, at 11:21, cocoa-dev-requ...@lists.apple.com wrote: Date: Tue, 06 Jan 2009 12:36:24 +0530 From: Mahaboob Subject: Scheduling an application To: "cocoa-dev@lists.apple.com" Message-ID: Content-Type: text/plain; charset="US-ASCII" I need to implement Scheduling In my appli

Asyncronous message handling

2009-01-06 Thread Mohan Parthasarathy
Hi, I am new to cocoa and hence i have this basic question for which i could not find a good answer after researching on this topic. Let us say that there are two objects A and B. 1) Object A produces some data 2) Object B consumes the data produced by object A When object B sends a message to o

Python-Cocoa Development

2009-01-06 Thread Nascimento, Ronaldo M.
I have spent some time developing in Obj-C and Cocoa, however most of my previous work was done in python. So I am trying to develop Cocoa (AppKit) stuff with Python and Xcode 3.1.2 but the documentation is sorely lacking. And if this is not the appropriate mailing list for this I apologize. -- Ro

[iPhone] Search control like in App Store

2009-01-06 Thread Martijn van Exel
Hi all, I'm looking to implement a user selection from a large number of items contained in a deep hierarchy (a taxonomy of species) for the iPhone. The hierarchy is too deep for a drill-down of TableViews, so I thought a control like the App Store iPhone application's Search tab would be a good id

Cocoa Client/Server App

2009-01-06 Thread Ammar Ibrahim
Hello, I'm new to ObjC/Cocoa, I'm trying to write an App that is somehow similar rsync, but for a specific purpose. More or less it does the following: * The App is Leopard only. I don't care about Tiger. * A GUI Cocoa App which scans a certain directory for files and displays them in a table vie

Design Advice - Bread Crumbs, NSPathControl

2009-01-06 Thread Rob Evans
Folks, I'd like to include a "Bread Crumbs" control in my application and wonder if extending NSPathControl would be appropriate. I'd like my control to look something like what you see in Apple's Instruments [1] or WebKits WebInspector [2]. Since these are path like structures, I naturally though

Re: Binding of "Object" and "Value" in NSPopupButtonCell

2009-01-06 Thread Ken Thomases
On Jan 2, 2009, at 5:47 PM, Jerry Krinock wrote: I want to add a "rank" attribute to the Employee class, an enumerated NSNumber representing something like this: To further complicate things, the gods restrict the allowed ranks for employees they don't like. To model this, the Employees cl

Re: .DS_Store files, dirContentsAtPath? (newb)

2009-01-06 Thread Chris Paveglio
Why I need it is simple- I need to show/count how many "user" files are in the folder, to the users. I'm migrating an Applescript based app to Cocoa. I believe I neglected to mention that the folder I am looking at is on a Windows server, so any native-ignoring of .DS files might not work. But as

Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library

2009-01-06 Thread Jonathan Hess
Hey Richard - Did you implement encodeWithCoder: and initWithCoder: in your two classes? If so, did you remember to call through to super's implementation in each case? Also, does your cell correctly implement copyWithZone? I'd put a breakpoint in the drawing functions of the cell to see

Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair

2009-01-06 Thread Rick Hoge
I pulled my hair out over this one, but I finally found an acceptable workaround, although it doesn't solve the fundamental problem of NSDictionaryController. Thanks very much for the reply and workaround. I will explore this solution further. The NSDictionaryController/bindings route

Repost Programmaric NSTextField not editable

2009-01-06 Thread livinginlosangeles
I want to display a programmatic list of NSTextfields in a view that is enclosed in a scrollview. I have a tabview whose view contains a scrollview which contains my custom view that I wish to display NSTextFields on. I can create the text fields and bind them to my model, however, I can't

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
On Jan 6, 2009, at 3:29 PM, Gordon Apple wrote: The only differences I can figure out is that Essentials loads it in awakeFromNib and I am loading it much later under user command. Also, my layer hierarchy uses your suggested CATiledLayer installed as a subview of the view's layer, what I c

Re: Convert GWorldPtr into a NSImage

2009-01-06 Thread glenn andreas
On Jan 6, 2009, at 5:42 PM, Graham Cox wrote: It should be straightforward to wrap an NSBitmapImageRep around some of the GWorld formats. Not all of them are supported but ARGB 32-bit is. While GWorlds do not have an alpha channel QuickDraw does preserve the bits in the unused byte, but

iPhoto API to access the shared photos

2009-01-06 Thread Charles E. Heizer
Hello, I have been hunting around the web and Apples' site and have not found what I'm really looking for. I'm looking for a way to connect to a shared iPhoto library and view the photos. I can find the shared library using Bonjour (NSNetServiceBrowser), but I cant seem to figure out how to connec

Re: Convert GWorldPtr into a NSImage

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 10:03 am, Eric Gorr wrote: I have something that comes close, but the problem I believe is that the pixelFormat for the GWorldPtr is BGRA. Why do you believe that? My recollection* is that a 32-bit RGB GWorld uses URGB (where U means 'unused' - GWorlds do not have an alph

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread Gordon Apple
No, I'm not messing with the asynchronous property. I went into essentials and had no problem playing a (even my own) composition. Just for testing, I created a hierarchy, viewlayer:layer:layer:compositionLayer. No problem. Essentials still played it. The only differences I can figure out is t

Re: Enum advice please (resend not sure if it was delivered ?)

2009-01-06 Thread Damien Cooke
Jeremy, Thanks, as it turns out if I put it above the @interface statement in the header file it works like a treat as you would I suspect as it should not be part of the class that I was building. Regards Damien On 06/01/2009, at 8:43 PM, Jeremy Pereira wrote: I pasted your code into a

Convert GWorldPtr into a NSImage

2009-01-06 Thread Eric Gorr
I need a reliable way to convert a GWorldPtr into a NSImage. I've tried searching for some sample code, but I cannot seem to find any for the direction I want to go in... Anyone have any pointers to some sample code that will do this? I have something that comes close, but the problem I beli

Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair

2009-01-06 Thread Simone Manganelli
Rick -- I pulled my hair out over this one, but I finally found an acceptable workaround, although it doesn't solve the fundamental problem of NSDictionaryController. What I ended up doing is setting the whole outer dictionary (the one controlled by the NSDictionaryController) via a KVO-c

Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair

2009-01-06 Thread Rick Hoge
I'm using an NSDictionaryController object to control the data provided to an NSTableView object. I'm attempting to use key-value coding through the dictionary controller to manipulate the data in a bindings-compatible way, by calling the method -arrangedObjects on the NSDictionaryContro

Re: Overriding NSTextField keyDown?

2009-01-06 Thread Mr. Gecko
oh yeah forgot about that. Thanks On Jan 6, 2009, at 3:10 PM, Douglas Davidson wrote: On Jan 6, 2009, at 1:05 PM, Mr. Gecko wrote: I didn't know this went up, I figured out how to do this like saturday. - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelec

Re: Overriding NSTextField keyDown?

2009-01-06 Thread Douglas Davidson
On Jan 6, 2009, at 1:05 PM, Mr. Gecko wrote: I didn't know this went up, I figured out how to do this like saturday. - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector { if ([NSStringFromSelector(commandSelector) isEqualToString:@

Re: Overriding NSTextField keyDown?

2009-01-06 Thread Mr. Gecko
I didn't know this went up, I figured out how to do this like saturday. - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector { if ([NSStringFromSelector(commandSelector) isEqualToString:@"insertNewline:"]) { [self goToU

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
On Jan 6, 2009, at 11:53 AM, Gordon Apple wrote: Note: There is no equivalent to "play" for a composition (at least that I am aware of). I get the initial frame and no play. My composition layer is four levels deep: viewLayer:contentLayer:attentionLayer:compositionLayer. Other stuff, in

Re: Removing CALayer after Animation

2009-01-06 Thread Matt Long
Bridger, As far as I can tell there is nothing inherent in the CA API to do what you want, however, KVC is available to you. When you create your animation, do this: [animation setValue:objectLayer forKey:@"parentLayer"]; Where objectLayer is the layer the animation is going to be run on.

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2009-01-06 Thread Sean McBride
On 1/4/09 1:17 AM, Chunk 1978 said: >since this timer i'm writing is based on NSDate, it's effected if the >computer's clock is manually changed... that i don't mind, because who >really need to ever manually set their clock on the computer... >however, i'm concerned that if (probably when) my tim

RE: Table sort image question

2009-01-06 Thread Jon C. Munson II
Thanks for that correction. I created a subclass of an NSArrayController (which provides the data from a CoreData entity to the table) and implemented the method in the subclass. At first I had a little trouble, then, after scanning the ref you sent, I set the dataSource outlet for the tableVie

Re: Enum advice please

2009-01-06 Thread Quincey Morris
On Jan 6, 2009, at 11:19, Greg Parker wrote: On Jan 6, 2009, at 1:53 AM, Graham Cox wrote: I never add in those _blahblah things after enum, I've never understood what they're for. I always typedef enums like this and they always work just fine. (Maybe someone could explain what this other

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread Gordon Apple
Documentation for QTMovieLayer: "layerWithMovie: Creates an autoreleased QTMovieLayer associated with the specified QTMovie object. + (id)layerWithMovie:(QTMovie *)movie Discussion By default, the movie starts playing immediately at rate 1.0 from the beginning of the movie. These default charact

Re: Table sort image question

2009-01-06 Thread Andy Lee
On Jan 6, 2009, at 2:18 PM, Jon C. Munson II wrote: OK, I looked into the method: - (void) tableView:(NSTableView*) aTableView sortDescriptorsDidChange: (NSArray*) oldDescriptors And decided to give it a shot after much play with the prior method. In that prior method I found that the

Re: Synchronizing QTMovieLayers

2009-01-06 Thread Seth Willits
Thank you very much, Matt. I'll look at this today. The movies aren't too large and are only being played on a top end Mac Pro, so the performance so far is fine. Though I did think about the potential of having to do something myself in GL. Your post will help, if I do. Thanks again, (

RE: Table sort image question

2009-01-06 Thread Jon C. Munson II
OK, I looked into the method: - (void) tableView:(NSTableView*) aTableView sortDescriptorsDidChange: (NSArray*) oldDescriptors And decided to give it a shot after much play with the prior method. In that prior method I found that the sortDescriptors and Prototype were not getting changed as e

Re: Enum advice please

2009-01-06 Thread Greg Parker
On Jan 6, 2009, at 1:53 AM, Graham Cox wrote: On 5 Jan 2009, at 6:14 pm, Damien Cooke wrote: typedef enum _DCDBTypes { DCOItemType = 0, DCOCategoryType = 1, DCORegionType = 2 }DCDBTypes; That said, also try this: typedef enum { DCOItemType = 0, DCOCat

Re: Strange behavior of observeValueForKeyPath:ofObject:change:context:

2009-01-06 Thread Quincey Morris
On Jan 6, 2009, at 10:44, WT wrote: It just occurred to me, though, that the KVO mechanism *could* do something special for dependent keys, namely, pass the original change dictionary on to the observer of the dependent key. After all, it does know that it's dealing with a dependent key. As

Re: Strange behavior of observeValueForKeyPath:ofObject:change:context:

2009-01-06 Thread WT
It just occurred to me, though, that the KVO mechanism *could* do something special for dependent keys, namely, pass the original change dictionary on to the observer of the dependent key. After all, it does know that it's dealing with a dependent key. As it is, once I get the notification

Re: Overriding NSTextField keyDown?

2009-01-06 Thread Douglas Davidson
On Jan 2, 2009, at 3:45 PM, Mr. Gecko wrote: Hello, I've been trying to override the NSTextField keyDown method, but it didn't seem to work. I've searched in the archives, but got nowhere, all I could find is to override the text field editor. But how could I do that? This is all very conf

Re: Strange behavior of observeValueForKeyPath:ofObject:change:context:

2009-01-06 Thread WT
Hi Quincey, thank you for your reply. In this scenario, typically the dependent property doesn't have a useful value -- all you care about is the notification. Yes, that's my intention. If you *are* trying to maintain a genuine value for the "displayNeeded" property, then we need to see t

Re: Localize Attributed Strings?

2009-01-06 Thread Douglas Davidson
On Jan 6, 2009, at 9:22 AM, Alastair Houghton wrote: On 4 Jan 2009, at 00:02, Chunk 1978 wrote: is this possible? i have a string that changes color and size according to the length of the words in the string. however, these words and their lengths change in different languages. clearly i

Re: Strange behavior of observeValueForKeyPath:ofObject:change:context:

2009-01-06 Thread Quincey Morris
On Jan 6, 2009, at 06:55, WT wrote: The reason for the comparison between the old and new values should be obvious, namely, I don't want to redraw the screen unless the value of the original key has in fact changed. Now, here's the problem: when I run my app, both the old and new values a

NSAppleScript returns wrong result on multiple Safari windows, applescript editor work

2009-01-06 Thread Jot Kali
Hello, I appreciate the response but neither of the two suggested solutions work. The one that keeps Safari in the background has the same issue, it returns the first Safari last tab, not the most recent Safari window. The second suggestion, where the applescript puts Safari as the frontm

Re: Localize Attributed Strings?

2009-01-06 Thread Alastair Houghton
On 4 Jan 2009, at 00:02, Chunk 1978 wrote: is this possible? i have a string that changes color and size according to the length of the words in the string. however, these words and their lengths change in different languages. clearly i could add and NSLocalization wrapper to the string, but

Re: Immediate Nib Loading Error

2009-01-06 Thread Nick Zitzmann
On Jan 6, 2009, at 3:55 AM, Kyle Sluder wrote: If you're on i386, self is at EBP[8] anyway (I'm unfamiliar with the x86_64 calling convention). It's pretty complicated, and documented here in case anyone is wondering: In this case, the X86-64

Re: NSBorderlessWindowMask and Leopard's Spaces

2009-01-06 Thread Eric Schlegel
On Jan 4, 2009, at 5:18 AM, Benjamin Dobson wrote: In my application, I am using a custom window based on NSBorderlessWindowMask. You can drag the titlebar to move it around. How do I make this play nice with Spaces? Dragging to the edge of the screen should switch space after a short de

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 6, 2009, at 11:44 AM, Corbin Dunn wrote: The latest problem I am having with this is that an NSOutlineView will not fully draw itself properly if the height of a row changes at the window it is on is being resized. Override -drawRect: in a subclass of NSOutlineView and just call [supe

Problem with AFP server Notification seek advice.

2009-01-06 Thread Sandro Noel
Greetings! I created a little application called Bonjour Mounter. and i'm having a little problem. when a server is mounted, and it notifies that it is going offline, I get a bonjour notification that the service disappeared, but so does Finder or OS X, and it dismounts the drives before BM ha

Re: Using the security framework

2009-01-06 Thread Nick Zitzmann
On Jan 3, 2009, at 6:50 PM, Joe Turner wrote: I am making a hard drive cloner/backuper, and to do some deleting and copying, I need to use the security framework. What I need to be able to do is have the user type in their password one time, and then it would give me system.privilege.admin

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Corbin Dunn
The latest problem I am having with this is that an NSOutlineView will not fully draw itself properly if the height of a row changes at the window it is on is being resized. Override -drawRect: in a subclass of NSOutlineView and just call [super drawRect:] -- live resize caching is confli

RE: Binary search on sorted NSArray in Cocoa?

2009-01-06 Thread Karan, Cem (Civ, ARL/CISD)
Adam R. Maxwell wrote on Tuesday, January 06, 2009 9:59 AM: > On Jan 6, 2009, at 8:16 AM, Karan, Cem (Civ, ARL/CISD) wrote: > > > My question is, does NSArray already have a binary search method > > defined on it in a category somewhere? If it does, I'd rather use > > that. > > It's not a ca

Re: Synchronizing QTMovieLayers

2009-01-06 Thread Matt Long
Seth, Synchronization is done at a lower level. You need to get the movie time base of the movie you want to be the master and then set the master time base for the movie you want to be the slave. Since this is done at the Movie primitive level it doesn't matter that you are using QTMovie

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread Matt Long
A QTMovieLayer "starts" when you call [QTMovie play] on the movie you initialized the layer with. What "specs" make the claim that a QTMovieLayer starts automatically? A QCCompositionLayer does start automatically. If your composition is not playing, check it in Quartz Composer first and ma

Visualization strategy/choosing a framework

2009-01-06 Thread Adam Foltzer
To the list this time :D -- Forwarded message -- From: Adam Foltzer Date: Tue, Jan 6, 2009 at 10:00 AM Subject: Re: Visualization strategy/choosing a framework To: Andrew Farmer I found the Accelerate framework after posting this, and have had some good success with it on my In

Re: Determining width of a cell in an NSOutlineView

2009-01-06 Thread Eric Gorr
On Jan 5, 2009, at 12:59 PM, Eric Gorr wrote: On Jan 5, 2009, at 12:37 PM, Corbin Dunn wrote: On Jan 5, 2009, at 8:56 AM, Eric Gorr wrote: On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote: On Dec 19, 2008, at 2:30 PM, Eric Gorr wrote: I just need to know the width so I base the heig

RE: Table sort image question

2009-01-06 Thread Jon C. Munson II
On 7 Jan 2009, at 12:18 am, Jon C. Munson II wrote: > 1. When is didClickTableColumn actually called? Is it after the > table does > its stuff, including setting the sort descriptors, or just prior to > that? This is not the method you want. You want the NSTableDataSource method: - (void

Re: Binary search on sorted NSArray in Cocoa?

2009-01-06 Thread Adam R. Maxwell
On Jan 6, 2009, at 8:16 AM, Karan, Cem (Civ, ARL/CISD) wrote: My question is, does NSArray already have a binary search method defined on it in a category somewhere? If it does, I'd rather use that. It's not a category, but take a look at CFArrayBSearchValues, which works just fine tha

Strange behavior of observeValueForKeyPath:ofObject:change:context:

2009-01-06 Thread WT
Hello, in the app I'm writing, I have a custom view with several KVO- compliant properties which, when changed, should cause the view to redraw itself. I've then set up a dependent key (displayNeeded) and have my custom view KV-observe changes to that key. When a change happens, I call set

NSUIHeartBeat gets stuck

2009-01-06 Thread Adam R. Maxwell
I have an application that starts and stops a spinning progress indicator. Start/stop is based on observing -[NSOperationQueue operations]; since I get KVO notifications on the queue's thread, I've been careful to start/stop the spinner on the main thread. The spinner is set to hide when

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2009-01-06 Thread Jason Foreman
Hi Marc, On Tue, Jan 6, 2009 at 2:42 AM, marc hoffman wrote: > > any other ideas? > I did notice one thing from your original code: > NSURLConnection *conn = [[NSURLConnection connectionWithRequest:request > delegate:self] retain]; > @try > { > [conn start]; The way you

Re: Printing PDF Documentation

2009-01-06 Thread James Montgomerie
On 6 Jan 2009, at 13:20, Development wrote: No, I do not need to write code to work with PDF; the example program to do this is pretty good. However, lots of documentation from Apple and other companies are not available exclusively as PDF file. Does anyone know of a good reliable source

Artur Zaiat/MOL/CEECIS/UNICEF is out of the office.

2009-01-06 Thread Artur Zaiat
I will be out of the office starting 01/05/2009 and will not return until 01/19/2009. I will respond to your message when I return or contact me. I can be reached anytime via my cell phone +37369148707 ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Problem with iPhone project

2009-01-06 Thread Dave DeLong
What that means is that you set the "FilesOwner" in your xib file to be a ButtonFunViewController, but you never hooked the view outlet for said controller (or it got unhooked). It's an easy mistake to make and one I find myself making about once a week. =P Dave On 4 Jan, 2009, at 9:00 A

Re: Table sort image question

2009-01-06 Thread Graham Cox
On 7 Jan 2009, at 12:18 am, Jon C. Munson II wrote: 1. When is didClickTableColumn actually called? Is it after the table does its stuff, including setting the sort descriptors, or just prior to that? This is not the method you want. You want the NSTableDataSource method: - (void) tab

RE: Table sort image question

2009-01-06 Thread Jon C. Munson II
> Essentially what I'm trying to do is determine the sort of the > column. One > way I've found is to pull out the indicator image. I plan on > comparing that > to a named image for one of the indicator images. If there is a > better way > to do that, I'd love to know as I haven't dredged

Re: Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Jean-Daniel Dupas
Le 6 janv. 09 à 10:53, Jean-Daniel Dupas a écrit : Le 5 janv. 09 à 06:58, Kiel Gillard a écrit : Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or a

Printing PDF Documentation

2009-01-06 Thread Development
No, I do not need to write code to work with PDF; the example program to do this is pretty good. However, lots of documentation from Apple and other companies are not available exclusively as PDF file. Does anyone know of a good reliable source for printing out hard copy of the documents?

Binary search on sorted NSArray in Cocoa?

2009-01-06 Thread Karan, Cem (Civ, ARL/CISD)
I have an NSArray of unique NSString instances that I have sorted. I am looking for the neighbors of a specific string within the array, which basically means finding the string's index, and then looking at the objects ahead and behind the string. So far, so good; I can use indexOfObject to fi

Re: Custom NSControl is not visible when dropped on a window from IB3.1 Library

2009-01-06 Thread Brandon Walkin
What you're experiencing could be caused by a number of issues. Mind posting the code? On 4-Jan-09, at 9:41 PM, Richard Humiston wrote: I have a custom NSControl and custom NSCell. I created an IBPlugin and framework per IB Plugin programming guide, and also used the clock control example

Re: Test

2009-01-06 Thread Scott Anguish
You did, several messages ago From: Scott Anguish Date: January 6, 2009 2:09:48 AM EST To: Cocoa Users Subject: [Moderator] Cocoa-Dev must have had a hard New Years As you many know, the list as absent from 12am PST till just recently. The server seems to have had too much New Years celebrat

[Moderator] Re: Test

2009-01-06 Thread Scott Anguish
The lists were temporarily down after New Years. All subscribers are back. Please don't use the list as a message test reflector. that puts it in the mailboxes of some 8000 people. scott [moderator] On 4-Jan-09, at 11:49 AM, Carl Anderson wrote: Have the mailing lists at Apple been clo

Re: Memory Management to NSError

2009-01-06 Thread Alexander Spohr
If you did not alloc it you should not release it. That is the rule for ALL objects. atze Am 06.01.2009 um 03:16 schrieb Dong Feng: How shall we handle the NSError object returned directly or indirectly (through out parameter)? Shall it be released after use? I checked the example cod

  1   2   >