Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
Hi Ross On 9 June 2011 01:51, Ross Carter rosscarter...@me.com wrote: On Jun 8, 2011, at 7:19 PM, Joe White wrote: Basically, the interface is separate editable objects that are usually single symbols with a few arguments included. This means that the each object is always one line high

Problem in table view handling

2011-06-09 Thread Abhijeet Singh
Hi,I have got a problem in my table view. There are four columns in my table view. The second column is editable rest are non editable. The last column has a button 'X' to delete the item.User can delete only the second last item from the table view. Hence 'X' button appears only corresponding

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
Hi Gary, You're right, sizeToFit was not correct. I ended up following this to get NSTextView to resize correctly - http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TextLayout/Tasks/StringHeight.html#//apple_ref/doc/uid/20001809-CJBGBIBB I'm not sure if you seen the other

Re: Login item not hidden

2011-06-09 Thread Leonardo
Thank you Jens, yes, I will create a new target with a build phase to copy the helper app within the app bundle. The helper app will contain only the timers code. So, at a given time, it will launch my app, as totally hidden, tell it to execute the task then quit. I just hope that the helper can

Re: Cocoa-dev Digest, Vol 8, Issue 415

2011-06-09 Thread Kirk Kerekes
On Jun 8, 2011, at 1:09 PM, cocoa-dev-requ...@lists.apple.com wrote: Re: Login item not hidden My app should execute several tasks fired by several timers. Actually the app must remain open in order to fire the timers, and this is not what my client wants. He wants the tasks run as hidden.

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Ross Carter
On Jun 9, 2011, at 6:11 AM, Joe White wrote: I think it would solve all my problems if I was able to do auto-completion, etc... with NSTextField. I don't have enough knowledge of the Cocoa API to make an informed decision yet. If you are not familiar with the field editor, I recommend you

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
Oh man, this sounds exactly what I need. Thanks for the pointer! Cheers, Joe On 9 June 2011 15:37, Ross Carter rosscarter...@me.com wrote: On Jun 9, 2011, at 6:11 AM, Joe White wrote: I think it would solve all my problems if I was able to do auto-completion, etc... with NSTextField. I

Re: getting the shakes

2011-06-09 Thread Matt Neuburg
On Wed, 01 Jun 2011 13:35:10 +1000, Graham Cox graham@bigpond.com said: In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3). Here's some actual working code (copied and pasted from

KVO, Bindings and Undo inconsistent

2011-06-09 Thread Anthony Ballard
I was hoping that someone could help me with undo, kvo and bindings. I have an object type called Transaction. And I have an object type called Account. Transaction has a property called value and Account has a property called balance. An account may have multiple transactions associated to

Again: You cannot use the ArtSaver screen saver on this computer

2011-06-09 Thread Gabriel Zachmann
Sorry to bother you again, but the problem cropped up again (I posted about it in March already). I have made this screensaver: http://zach.in.tu-clausthal.de/software/ArtSaver/index.html One user emailed me saying that he got an error message saying: You cannot use the ArtSaver screen saver

Re: touches outside a view's bounds

2011-06-09 Thread Matt Neuburg
On Wed, 01 Jun 2011 22:25:32 +0800, Roland King r...@rols.org said: I've been taking advantage of the fact that UIView's don't clip to their bounds by making my superview of size CGSizeZero and adding content to it. This means I can position the whole view hierarchy using its center, which is

Re: iOS: antialiasing text

2011-06-09 Thread David Duncan
On Jun 7, 2011, at 4:56 PM, Graham Cox wrote: I'm rendering text into a bitmap image context (in fact just a single letter, with a small drop-shadow). I am unable to get this text to be drawn anti-aliased, despite turning on all the shoulds and allows that pertain to this. Is anti-aliasing

Re: Again: You cannot use the ArtSaver screen saver on this computer

2011-06-09 Thread Nick Zitzmann
On Jun 7, 2011, at 9:24 AM, Gabriel Zachmann wrote: Sorry to bother you again, but the problem cropped up again (I posted about it in March already). I have made this screensaver: http://zach.in.tu-clausthal.de/software/ArtSaver/index.html One user emailed me saying that he got an

Re: Login item not hidden

2011-06-09 Thread Jens Alfke
On Jun 9, 2011, at 4:10 AM, Leonardo wrote: I just hope that the helper can launch the app as totally hidden, while a user could still launch the app (on a different moment) as a non-hidden app. Can I do that? I mean can the helper set the LaunchServices of the app on the fly? Nope.

Re: Again: You cannot use the ArtSaver screen saver on this computer

2011-06-09 Thread Nick Zitzmann
On Jun 7, 2011, at 9:24 AM, Gabriel Zachmann wrote: Sorry to bother you again, but the problem cropped up again (I posted about it in March already). I have made this screensaver: http://zach.in.tu-clausthal.de/software/ArtSaver/index.html One user emailed me saying that he got an

Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
Does anyone know if there is a way to get a pointer for the NSPopUpButton containing a NSMenu containing a NSMenuItem, which is the IBAction sender? I have multiple similar popups, and all of them have a Custom… menu item, designated to hiding the popup and bringing more controls to the user.

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Quincey Morris
On Jun 9, 2011, at 11:43, Siegfried wrote: Does anyone know if there is a way to get a pointer for the NSPopUpButton containing a NSMenu containing a NSMenuItem, which is the IBAction sender? I have multiple similar popups, and all of them have a Custom… menu item, designated to hiding

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
On 09/06/2011, at 16:40, Quincey Morris wrote: On Jun 9, 2011, at 11:43, Siegfried wrote: … If the Custom item is just one of the popup's items (that is, there's no submenu involved) No there isn't, but: then IIRC the popup button will be the sender, not the menu item. Actually the

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Quincey Morris
On Jun 9, 2011, at 12:51, Siegfried wrote: From the other items, I just need to retrieve their tags so I didn't connect the action on the popup as it was an ivar already, and just created a specific action for the Cusom item. Is there any reason not to use a specific tag for the custom

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
On 09/06/2011, at 17:06, Quincey Morris wrote: On Jun 9, 2011, at 12:51, Siegfried wrote: From the other items, I just need to retrieve their tags so I didn't connect the action on the popup as it was an ivar already, and just created a specific action for the Cusom item. Is there any

Re: Login item not hidden

2011-06-09 Thread Jerry Krinock
On 2011 Jun 09, at 10:43, Jens Alfke wrote: On Jun 9, 2011, at 4:10 AM, Leonardo wrote: I just hope that the helper can launch the app as totally hidden, while a user could still launch the app (on a different moment) as a non-hidden app. Can I do that? I mean can the helper set the

[ANN] SPSearchStore: Objective-C wrapper for SearchKit

2011-06-09 Thread Philip Dow
Heya all, I wanted to share an Objective-C wrapper for the SearchKit API. To my knowledge there is no existing Obj-C wrapper for this particular API, although it seems at one time there was an effort to produce one. This particular wrapper consists of a single class which captures most of

iOS: Nibloading questions

2011-06-09 Thread Development
I have an app with a number of custom views. however this is not a problem I have faced in just this application. About 3/4 of the objects I place in a nib work for the other quarter no matter what I do the connection never happens. For instance I have a view controller. The controller's view

Re: Manually setting orientation makes a mess out of my interface

2011-06-09 Thread Matt Neuburg
On Sat, 04 Jun 2011 20:31:22 -0700, Development developm...@fornextsoft.com said: when my application first starts up I want it in portrait mode. However when a user switches to an editor it needs to transform in to landscape mode. The simple solution is that your main view's view controller

Re: How can I be so wrong about graphics?

2011-06-09 Thread Matt Neuburg
On Mon, 06 Jun 2011 14:31:28 -0700, Development developm...@fornextsoft.com said: According to like a million examples... If I place the follow bit of code in a view's drawRect: method I should get a line from pointA to pointB however I get nothing. What I would suggest you do is start with

Re: tools for writing help books

2011-06-09 Thread Matt Neuburg
On Wed, 08 Jun 2011 09:33:50 +0200, Michael Thon m...@michaelrthon.com said: What tools to y'all recommend for writing content for the help viewer on Mac OS? Do you write them directly in html/xhtml? Yeah, I rolled my own, RubyFrontier: http://www.apeth.com/RubyFrontierDocs/ I've written some

iOS: encoding a custom view with a shape in it

2011-06-09 Thread Development
This app allows users to do a number of graphical things. On of those things is to draw rectangles and ellipses. No it would not be complete if they could not resize and rotate these shapes. Thus the features exist. The problem comes when I freeze dry the object. I encode it exactly as it

Re: touches outside a view's bounds

2011-06-09 Thread Roland King
On 10-Jun-2011, at 12:44 AM, Matt Neuburg wrote: On Wed, 01 Jun 2011 22:25:32 +0800, Roland King r...@rols.org said: I've been taking advantage of the fact that UIView's don't clip to their bounds by making my superview of size CGSizeZero and adding content to it. This means I can position

Re: iOS: antialiasing text

2011-06-09 Thread Graham Cox
On 10/06/2011, at 3:24 AM, David Duncan wrote: I imagine what you are expecting is LCD antialiasing, which I am fairly certain is not done on iOS. You should still get standard antialiasing however. No, I appreciate I'm not going to get that. But rendering the text offscreen with the code

Re: touches outside a view's bounds

2011-06-09 Thread Matt Neuburg
On Jun 9, 2011, at 5:23 PM, Roland King wrote: On 10-Jun-2011, at 12:44 AM, Matt Neuburg wrote: On Wed, 01 Jun 2011 22:25:32 +0800, Roland King r...@rols.org said: I've been taking advantage of the fact that UIView's don't clip to their bounds by making my superview of size CGSizeZero

Re: iOS: antialiasing text

2011-06-09 Thread Graham Cox
On further investigation, it seems as if the problem is not in the rendering of the text into the offscreen bitmap context, but the later scaling down of that image in a CALayer. On the Mac, when I set the layer's minificationFilter property to trilinear, that produces nice results, but on