Re: 3d cube using public api of CoreAnimation

2010-08-02 Thread cocoa learner
Any one please help? On Sun, Aug 1, 2010 at 1:53 AM, cocoa learner cocoa.lear...@gmail.comwrote: Hi All, Is there any way to create 3d Cube effect in Core Animation using public API. After searching in net I found some links but those are talking about using Private Apis. Which I do not

Re: Using an NSToolbar in a sheet

2010-08-02 Thread Mike Abdullah
On 1 Aug 2010, at 23:20, Dave Fernandes wrote: I haven't found anything specific in the HIG about this, so I'd be interested in some opinions... I have an modal editor sheet that attaches to a document window to allow certain document contents to be manipulated. The sheet is somewhat

Changing frame and title color of HUD window

2010-08-02 Thread Nava Carmon
Hi, Is there a way to change the color of frame title of HUD window without drawing them by myself? Thanks Nava Carmon ncar...@mac.com Think good and it will be good! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Displaying an edit field in a cell at the bottom of the tableview

2010-08-02 Thread Fritz Anderson
On 1 Aug 2010, at 11:44 PM, Laurent Daudelin wrote: Maybe a stupid question but I have 5 cells in a section of my tableview. When I move the cursor to edit cell 3, it's partially obscured by the keyboard. I can't even see cell 4 and cell 5. Surely there must be a way to make the cell

Annotations in MKMapView

2010-08-02 Thread Gerriet M. Denkmann
I have an MKMapView which has about 700 annotations which represent bus-lines. That implies, they are not images, but are drawn as lines. In iOS 3 this worked fine. When the user changed the zoom level, these lines did no longer match their streets, but in mapView:regionDidChangeAnimated: I

[iPhone] Data protection clarification needed.

2010-08-02 Thread Sandro Noël
Greetings. I've been looking for information on how the data protection works on the iPhone and I've watched the WWDC video session 209. but I might have misunderstood. what I understand is that the data is protected as long as the phone is locked. otherwise, it is accessible. with options of

Re: Displaying an edit field in a cell at the bottom of the tableview

2010-08-02 Thread Laurent Daudelin
On Aug 2, 2010, at 07:36, Fritz Anderson wrote: On 1 Aug 2010, at 11:44 PM, Laurent Daudelin wrote: Maybe a stupid question but I have 5 cells in a section of my tableview. When I move the cursor to edit cell 3, it's partially obscured by the keyboard. I can't even see cell 4 and cell 5.

NSURLConnection - data comes in after completion

2010-08-02 Thread Fritz Anderson
iOS 4.0.1 SDK, Simulator 4.0. The behavior matches a bug report on 3.x device. I have a problem with NSURLConnection that I've solved, but I don't trust the solution, so I'd like some assurance that I'm doing the right thing. As you see in the code excerpt, I start a download asynchronously,

Re: NSURLConnection - data comes in after completion

2010-08-02 Thread David Duncan
On Aug 2, 2010, at 9:40 AM, Fritz Anderson wrote: The didReceiveData: callback asserts that the data accumulator exists. In certain circumstances (it seems to be with four of these requests started nearly simultaneously), the assertion is triggered. self.dataAccumulator is nil, and there

Re: [iPhone] Data protection clarification needed.

2010-08-02 Thread Mark Ritchie
Hey! On 2/Aug/2010, at 9:02 AM, Sandro Noël wrote: ... What we want is for out application Data to still be locked when the phone is unlocked and only unlocked by the user when the user logs locally in to the application. ... I'm sure that there are several ways to encrypt data on the

Re: NSURLConnection - data comes in after completion

2010-08-02 Thread Fritz Anderson
On 2 Aug 2010, at 11:50 AM, David Duncan wrote: On Aug 2, 2010, at 9:40 AM, Fritz Anderson wrote: The didReceiveData: callback asserts that the data accumulator exists. In certain circumstances (it seems to be with four of these requests started nearly simultaneously), the assertion is

Re: [iPhone] Data protection clarification needed.

2010-08-02 Thread Sandro Noël
Hey Mark! Sorry for not being to clear, I'm doing my best. I suppose it might depend on what data you're talking about. If it's application configuration data, then it definitely should be backed up via the usual methods. If it's some kind of cache of data from an external source,

Re: Unarchiving issues

2010-08-02 Thread James Maxwell
Okay, so here's the initWithCoder from the object that's giving me grief. The variable continuations is a float* array, and appears to load fine from here, but disappears once the root object is unarchived and set. I've since discovered that, through a mistake I made at another place in the

NSOpenSavePanelDelegate mounting all drives of a server

2010-08-02 Thread Lyndsey Ferguson
Hello Everyone, I'm looking into a problem that appears when I use a NSOpenSavePanelDelegate to filter files from the NSOpenPanel dialog on Mac OS X 10.6.4. The problem is that when the user clicks on one of the drives attached to an NAS, many other drives become mounted, and for some of our

Re: Unarchiving issues

2010-08-02 Thread Graham Cox
On 03/08/2010, at 3:46 AM, James Maxwell wrote: continuations = (float*)[aDecoder decodeBytesForKey:@continuations returnedLength:size]; I expect the returned bytes are autoreleased. The docs don't state this explicitly, but the similar method -decodeBytesWithReturnedLength:

Re: Unarchiving issues

2010-08-02 Thread glenn andreas
On Aug 2, 2010, at 12:46 PM, James Maxwell wrote: // set the contents of the array continuations = (float*)[aDecoder decodeBytesForKey:@continuations returnedLength:size]; From the header file: - (const uint8_t *)decodeBytesForKey:(NSString *)key

Re: [iPhone] Data protection clarification needed.

2010-08-02 Thread Greg Guerin
Sandro Noël wrote: There is no need for that data to be backed up anywhere, as it is retrievable from the web service. the cached data is used for offline operations and later synced back to the web service. We want to control when the data becomes available in an unencrypted format. and

Detecting a remote volume

2010-08-02 Thread Knut Lorenzen
Dear List, my app should copy a few files to a remote (afp://) volume, hence it notifies the user if there is no connection, using NSFileManager's fileExistsAtPath: method. However, if the user connects to the Server using Finder's Connect As..., NSFileManager's fileExistsAtPath:

Re: Detecting a remote volume

2010-08-02 Thread Ken Thomases
On Aug 2, 2010, at 2:26 PM, Knut Lorenzen wrote: my app should copy a few files to a remote (afp://) volume, hence it notifies the user if there is no connection, using NSFileManager's fileExistsAtPath: method. However, if the user connects to the Server using Finder's Connect As...,

Re: Using an NSToolbar in a sheet

2010-08-02 Thread Dave Fernandes
Mike, Thanks for the iWork Export panel example. Interesting. Though it is using its toolbar in a fairly limited way to make a selection. The inline approach with a tab view (like the Find scope bar that comes down in Safari) seems like the least complicated way from the standpoint of

Re: Unarchiving issues

2010-08-02 Thread James Maxwell
Thanks, everybody. Of course, you're all absolutely right, the buffer from decodeBytesForKey is temporary. I'd just assumed the bytes would be written to my malloced buffer, not realizing I needed to explicitly copy them. Problem solved. cheers, J. On 2010-08-02, at 10:56 AM, Graham Cox

Re: Detecting a remote volume

2010-08-02 Thread Knut Lorenzen
Am 02.08.2010 um 21:58 schrieb Ken Thomases: They are not out of date, so there's nothing to update them about. Well, technically you are correct, of course. But they do not deliver what I hope to get or expect. May I call that out of date? Connecting to the server is not the same as

Re: Detecting a remote volume

2010-08-02 Thread Kyle Sluder
On Mon, Aug 2, 2010 at 1:30 PM, Knut Lorenzen k...@macdisk.de wrote: Am 02.08.2010 um 21:58 schrieb Ken Thomases: They are not out of date, so there's nothing to update them about. Well, technically you are correct, of course. But they do not deliver what I hope to get or expect. May I

Re: table header cells not on even lines

2010-08-02 Thread Corbin Dunn
On Jul 31, 2010, at 9:52 PM, Shane wrote: --- DataTableHeaderCell.h @interface DataTableHeaderCell : NSPopUpButtonCell { You should descend from NSTableHeaderCell. corbin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Detecting a remote volume

2010-08-02 Thread Knut Lorenzen
Am 02.08.2010 um 22:39 schrieb Kyle Sluder: ... Well, technically you are correct, of course. But they do not deliver what I hope to get or expect. May I call that out of date? No. Unless you were referring to your expectations as being out of date. Sorry, but I do not understand what

Re: Detecting a remote volume

2010-08-02 Thread Kyle Sluder
On Mon, Aug 2, 2010 at 2:24 PM, Knut Lorenzen k...@macdisk.de wrote: Am 02.08.2010 um 22:39 schrieb Kyle Sluder: ... Well, technically you are correct, of course. But they do not deliver what I hope to get or expect. May I call that out of date? No. Unless you were referring to your

NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
I have an NSPanel and I want to change the look of the min button and completely hide the resize button. The min button I want to make into a bezel style of a disclosure triangle. I am using this line of code to access the min button but it returns nil in my controllers' windowDidLoad.

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Kyle Sluder
On Aug 2, 2010, at 2:47 PM, Tony Romano tony...@hotmail.com wrote: NSButton *minButton = [[self window] standardWindowButton:NSMiniaturizableWindowMask]; You're using the wrong flag here. You want one of the NSWindowButton flags. See the documentation for -standardWindowButton:. The

Re: NSPanel, changing the look of the min button

2010-08-02 Thread John Joyce
On Aug 2, 2010, at 4:47 PM, Tony Romano wrote: I have an NSPanel and I want to change the look of the min button and completely hide the resize button. The min button I want to make into a bezel style of a disclosure triangle. I am using this line of code to access the min button but it

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
Im not trying to disregard the HIG. The panel is the basis for an inspector(s) for properties for a drawing application. Looking at other well known applications, it seemed there is precedence. If that precedence is wrong, I won't follow it. Please advise. -Tony On Aug 2, 2010, at 2:58

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
Thanks, I totally misread that. Changing the argument to the correct flag gets me the button, however, setting the style doesn't have any effect. I moved the code to initWithContentRect: post the call to super, still no change. I introspected the view with F-Script and it has the bezel

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Kyle Sluder
On Mon, Aug 2, 2010 at 3:31 PM, Tony Romano tony...@hotmail.com wrote: Changing the argument to the correct flag gets me the button, however, setting the style doesn't have any effect.  I moved the code to initWithContentRect: post the call to super, still no change.  I introspected the

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
All the buttons are really called WSThemeWidgets which supports your suspect of custom draw code. So using the zoom button won't make a difference( I tried it as well). I'm trying to change the minimize button to a disclosure triangle that will show/hide the inspector currently being

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Quincey Morris
On Aug 2, 2010, at 15:31, Tony Romano wrote: Changing the argument to the correct flag gets me the button, however, setting the style doesn't have any effect. I moved the code to initWithContentRect: post the call to super, still no change. I introspected the view with F-Script and it

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
Honestly guys, I have no devious motives here ! :-) I am not trying to take any shortcuts, I am just trying to learn the correct way to do things. There are programs such as Photoshop, OmniGraphSketcher that do similar things. For this UI, I am trying to follow precedence. I know the Omni

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Kyle Sluder
On Mon, Aug 2, 2010 at 4:16 PM, Tony Romano tony...@hotmail.com wrote: Honestly guys, I have no devious motives here ! :-)  I am not trying to take any shortcuts, I am just trying to learn the correct way to do things.  There are programs such as Photoshop, OmniGraphSketcher that do similar

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
Thanks Kyle, I've reviewed the inspector code. I've thought about the toolbar viz button and wondered how hot the flames would be under my feet for changing the way a standard button behaves :-) That's one thing I admire about Apple, consistency is the high order bit. At least my original

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Quincey Morris
On Aug 2, 2010, at 16:16, Tony Romano wrote: Honestly guys, I have no devious motives here ! :-) I am not trying to take any shortcuts, I am just trying to learn the correct way to do things. There are programs such as Photoshop, OmniGraphSketcher that do similar things. For this UI, I

Re: Displaying an edit field in a cell at the bottom of the tableview (2)

2010-08-02 Thread Corbin Dunn
On Aug 1, 2010, at 9:50 PM, Laurent Daudelin wrote: Hmmm.. I think the fact that the tableview is embedded in an enclosing view seems to be the problem. I checked another tableview that has 4 cells with textfields and as soon as the textfield becomes first responder, the field is scrolled

Re: NSPanel, changing the look of the min button

2010-08-02 Thread Tony Romano
Ok, seems like there is no middle ground between using straight cocoa and a custom titlebar. Not sure if I can picture a solution using a NSOutlineView, seems orthogonal to what I am trying to achieve. If you go to Omni website and install the trial version of OmniGraphSketch and look at

Re: Displaying an edit field in a cell at the bottom of the tableview (2)

2010-08-02 Thread Laurent Daudelin
On Aug 2, 2010, at 17:09, Corbin Dunn wrote: On Aug 1, 2010, at 9:50 PM, Laurent Daudelin wrote: Hmmm.. I think the fact that the tableview is embedded in an enclosing view seems to be the problem. I checked another tableview that has 4 cells with textfields and as soon as the textfield

Re: NSPanel, changing the look of the min button

2010-08-02 Thread John Joyce
Hi Tony, From what you describe, a custom view and/or panel/window utilizing a disclosure triangle sounds like your best approach. A bit of work, but the process will be enlightening and rewarding and will pay dividends further down the line when you need to expand the app... On Aug 2, 2010,

Re: How troubleshoot when Managed Object disappears from Store?

2010-08-02 Thread Jerry Krinock
On 2010 Aug 01, at 20:59, Quincey Morris wrote: Are you sure this isn't just a memory management error, perhaps in combination with an incorrect delete rule? What's the delete rule for the department relationship in the Employee entity? Nullify in both directions. Is there a strong

Re: How troubleshoot when Managed Object disappears from Store?

2010-08-02 Thread Quincey Morris
On Aug 2, 2010, at 20:11, Jerry Krinock wrote: It seems to me that, throughout Cocoa documentation, Apple uses the phrase document type to mean three different things: Display Name, UTI, and Filename Extension. For example, in the documentation of

[iPhone] Handling of Web URLs in UI Automation

2010-08-02 Thread Vijayakumar_Thota
Dear List, I have been working on the iPhone UI Automation tool which is introduced in iPhone OS 4.0. There is no much documentation provided on how the web urls need to be loaded and how to get the response in the javascript file using UIA API. I have gone through UIAWebView, UIAElement, and

Re: [iPhone] Data protection clarification needed.

2010-08-02 Thread Graham Lee
On 2 Aug 2010, at 18:37, Sandro Noël wrote: I suppose it might depend on what data you're talking about. If it's application configuration data, then it definitely should be backed up via the usual methods. If it's some kind of cache of data from an external source, then perhaps it