valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
Hi, I've somewhat the same problem as a recent thread, but I can't fix it with what was suggested in that thread. I've to following class: #import Foundation/Foundation.h #import AudionetCommand.h #import AudionetQueueDelegateProtocol.h @interface AudionetCommandQueue : NSObject { id

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Gideon King
AFAIK, when something is referenced as a protocol like that, the *only* methods it knows about are the ones in the protocol. If you just cast the delegate to type id, you should be OK (I have encountered similar situations where this solution worked) [(id)delegate valueForKeyPath:... HTH

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
That works indeed. I hoped there was a more elegant solution. Kind regards, Remco Poelstra Op 16 nov 2010, om 11:43 heeft Gideon King het volgende geschreven: AFAIK, when something is referenced as a protocol like that, the *only* methods it knows about are the ones in the protocol. If you

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Roland King
Or use NSObject* protocol Instead of id. Assuming that all the objects are NSObjects. On Nov 16, 2010, at 18:43, Gideon King gid...@novamind.com wrote: AFAIK, when something is referenced as a protocol like that, the *only* methods it knows about are the ones in the protocol. If you

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
More elegant indeed :). I thought delegates had to be of type id. Kind regards, Remco Poelstra Op 16 nov 2010, om 11:57 heeft Roland King het volgende geschreven: Or use NSObject* protocol Instead of id. Assuming that all the objects are NSObjects. On Nov 16, 2010, at 18:43,

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
Your AudionetQueueDelegate protocol is probably not inheriting from NSObject (the protocol) so it warns that valueForKeyPath: is not found. It'll also probably complain about methods like respondsToSelector: which is also part of the NSObject protocol. You need to write your protocol

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven: Your AudionetQueueDelegate protocol is probably not inheriting from NSObject (the protocol) so it warns that valueForKeyPath: is not found. It'll also probably complain about methods like respondsToSelector: which is also

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Roland King
Yes that wont work, which is why I said NSObject* protocol instead of idNSObject,protocol valueForKeyPath: is not defined in the NSObject protocol, but is defined on NSObject itself which is why it works. On Nov 16, 2010, at 19:27, Remco Poelstra re...@beryllium.net wrote: Op 16 nov 2010,

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
On 16 Nov 2010, at 11:27:22, Remco Poelstra wrote: Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven: Your AudionetQueueDelegate protocol is probably not inheriting from NSObject (the protocol) so it warns that valueForKeyPath: is not found. It'll also probably complain

Get current caret position

2010-11-16 Thread eveningnick eveningnick
Hello I a wondering, if it is possible to get the current screen position of a text cursor (text caret) using Cocoa? It is possible to do that in Windows system (GetCaretPos), maybe Mac allows some similar functionality? Thanks! ___ Cocoa-dev mailing

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Sherm Pendley
On Tue, Nov 16, 2010 at 6:27 AM, Remco Poelstra re...@beryllium.net wrote: Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven: You need to write your protocol declaration in AudionetQueueDelegateProtocol.h as: @protocol AudionetQueueDelegate NSObject That does not seem

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Sherm Pendley
On Tue, Nov 16, 2010 at 7:28 AM, Sherm Pendley sherm.pend...@gmail.comwrote: On Tue, Nov 16, 2010 at 6:27 AM, Remco Poelstra re...@beryllium.netwrote: Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven: You need to write your protocol declaration in

Re: Get current caret position

2010-11-16 Thread Graham Cox
On 16/11/2010, at 11:26 PM, eveningnick eveningnick wrote: I a wondering, if it is possible to get the current screen position of a text cursor (text caret) using Cocoa? It is possible to do that in Windows system (GetCaretPos), maybe Mac allows some similar functionality? The text caret

Re: Get current caret position

2010-11-16 Thread eveningnick eveningnick
The text caret doesn't have a single, global position. It is really the position of the text selection within an active text view when the selection length is zero. If you want to know which logical characters the insertion point is at in a given text view, that's easy to find - just get

Re: Get current caret position

2010-11-16 Thread Vincent Habchi
Le 16 nov. 2010 à 15:18, eveningnick eveningnick a écrit : Basically i want to get the text caret position in Word 2011 active document window. I want to place a popup window on that location. Microsoft Word 2011 SDK is not available to public (i am not even sure if this SDK includes such a

Re: Get current caret position

2010-11-16 Thread eveningnick eveningnick
Hi George, What you want to do would is within another's application. Any public hooks/APIs could be used... In this case VB and AppleScript. For deeper, Cocoa-based integration, you would probably need to work with Microsoft. Couldn't hurt to try contacting them... The means mentioned

Re: [iPhone] Toolbar button and Touch Down

2010-11-16 Thread Matt Neuburg
On Mon, 15 Nov 2010 10:02:44 -0800, Jonathon Kuo newsli...@autonomy.caltech.edu said: Interesting idea, probably a little beyond me. :) Nonsense. This is perfectly standard and easy. A UIButton can send an action message on TouchDown. It makes no difference that the UIButton is inside a

Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
Below is a simple test application that launches a process and logs the output as it runs. It works as expected when the app is set to no garbage collection, but as soon as I turn on garbage collection, the following notifications stop working: - NSTaskDidTerminateNotification -

Re: Get current caret position

2010-11-16 Thread Scott Ribe
On Nov 16, 2010, at 7:18 AM, eveningnick eveningnick wrote: Thus i was thinking that as long as Word 2011 is a cocoa application, its document is most likely something like a modified text field (not sure though) and i could get that position (at least, relatively to the main window's pos).

Re: [iPhone] Toolbar button and Touch Down

2010-11-16 Thread Jonathon Kuo
On Nov 16, 2010, at 9:12 AM, Matt Neuburg wrote: On Mon, 15 Nov 2010 10:02:44 -0800, Jonathon Kuo newsli...@autonomy.caltech.edu said: Interesting idea, probably a little beyond me. :) Nonsense. This is perfectly standard and easy. A UIButton can send an action message on TouchDown. It

Re: [iPhone] Toolbar button and Touch Down

2010-11-16 Thread Dave DeLong
Which means you'd probably have to do it programmatically, or just have an IBOutlet to the UIButton inside the UIBarButtonItem. Dave On Nov 16, 2010, at 10:26 AM, Jonathon Kuo wrote: On Nov 16, 2010, at 9:12 AM, Matt Neuburg wrote: On Mon, 15 Nov 2010 10:02:44 -0800, Jonathon Kuo

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Adam Swift
On Nov 12, 2010, at 10:51 AM, Jerry Krinock wrote: When implementing this method: -createDestinationInstancesForSourceInstance:entityMapping:manager:error: in a subclass of NSEntityMigrationPolicy, one typically loops through attributes of the given source instance, does whatever

Re: Get current caret position

2010-11-16 Thread Kyle Sluder
On Tue, Nov 16, 2010 at 4:26 AM, eveningnick eveningnick eveningn...@gmail.com wrote: Hello I a wondering, if it is possible to get the current screen position of a text cursor (text caret) using Cocoa? It is possible to do that in Windows system (GetCaretPos), maybe Mac allows some similar

Re: Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Bill Bumgarner
The issue [I'd bet -- don't have time to dive deep] is that you don't have a strong reference to the Tasker instance. Since notification observers don't hold strong references to observers, either, the garbage collector sees Tasker as garbage and collects it. You could fix this any number of

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Adam Swift
And now with functional links... sigh On Nov 12, 2010, at 10:51 AM, Jerry Krinock wrote: When implementing this method: -createDestinationInstancesForSourceInstance:entityMapping:manager:error: in a subclass of NSEntityMigrationPolicy, one typically loops through attributes of the

Re: Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Quincey Morris
On Nov 16, 2010, at 09:17, Jon Gilkison wrote: Below is a simple test application that launches a process and logs the output as it runs. It works as expected when the app is set to no garbage collection, but as soon as I turn on garbage collection, the following notifications stop

Re: Is App in Resources App Bundle Evil?

2010-11-16 Thread kalexm
Am 15.11.2010 um 04:43 schrieb Kyle Sluder: On Sun, Nov 14, 2010 at 9:55 AM, kalexm kal...@gmail.com wrote: Hello all, I'm new to the list and somewhat new to OSX (not iphone!) development. I spent ten years most of my time in java so it was a hurdle.. I am currently developing an app

Re: Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
That was it, though further up the chain. The object that created/owned the task was being GC'd away. Thanks Bill and Quincy! On Nov 16, 2010, at 12:53 PM, Bill Bumgarner wrote: The issue [I'd bet -- don't have time to dive deep] is that you don't have a strong reference to the Tasker

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Jerry Krinock
On 2010 Nov 16, at 09:48, Adam Swift wrote: That the objects will be fetched as NSManagedObjects is documented in the versioning migration guide … Three-Stage Migration. Thank you, Adam. I see that it says the class of all entities is changed to NSManagedObject. However, I think that I'm

Re: [iPhone] Toolbar button and Touch Down

2010-11-16 Thread Jon Sigman
Yeah, UIToolbars are odd beasts. Try this out: place a UISwitch in a toolbar, hook it up to an IBAction, and you get... nothing. It switches from ON to OFF and back, but the action never fires. Bug? Feature? Not exactly 'standard and easy' imho. Maybe the 'next major release' will address this.

Third Party Material

2010-11-16 Thread Richard Somers
I just noticed that Apple's Keynote, Pages, and Numbers '08 applications acknowledge the following material. Mike Ferris – (MOKit) Portions Copyright © 1996-2002 Mike Ferris. All Rights Reserved. Kurt Revis – (SNDisclosableView/SNDisclosureButton) Copyright © 2002, Kurt Revis. All rights

Load View Controller Nib without pushing it?

2010-11-16 Thread Laurent Daudelin
Hello. I'm stomped by a strange problem. I've been working with a UIViewController subclass and it's been working fine, putting it on screen using pushViewController:animated:. Now, I would like to load the view controller and have it perform a method before I put it on screen. However, when

Re: Load View Controller Nib without pushing it?

2010-11-16 Thread Dave Carrigan
On Nov 16, 2010, at 1:29 PM, Laurent Daudelin wrote: Hello. I'm stomped by a strange problem. I've been working with a UIViewController subclass and it's been working fine, putting it on screen using pushViewController:animated:. Now, I would like to load the view controller and have it

add a icon to window title bar ?

2010-11-16 Thread Rajendran P
Hi , I am developing a non document based App. i need to add an icon to its main window title bar before the title string , any input on how to implement it would be help full Thanks In Advance P.Rajendran or Raju (for further details contact me )

Re: Load View Controller Nib without pushing it?

2010-11-16 Thread Laurent Daudelin
On Nov 16, 2010, at 13:34, Dave Carrigan wrote: On Nov 16, 2010, at 1:29 PM, Laurent Daudelin wrote: Hello. I'm stomped by a strange problem. I've been working with a UIViewController subclass and it's been working fine, putting it on screen using pushViewController:animated:. Now, I

problem with right click jump to definition

2010-11-16 Thread Rajendran P
HI all , I am currently using a custom make file to build my project file , when i right click and say Jump to definition. it is no going to definition file for methods defined in frameworks like cocoa and systemsecurity but its working fine for all methods written by me . any input on

Re: Load View Controller Nib without pushing it?

2010-11-16 Thread Brian Slick
On Nov 16, 2010, at 4:50 PM, Laurent Daudelin wrote: On Nov 16, 2010, at 13:34, Dave Carrigan wrote: On Nov 16, 2010, at 1:29 PM, Laurent Daudelin wrote: Hello. I'm stomped by a strange problem. I've been working with a UIViewController subclass and it's been working fine, putting it

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Adam Swift
On Nov 16, 2010, at 10:46 AM, Jerry Krinock wrote: On 2010 Nov 16, at 09:48, Adam Swift wrote: That the objects will be fetched as NSManagedObjects is documented in the versioning migration guide … Three-Stage Migration. Thank you, Adam. I see that it says the class of all entities

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Jerry Krinock
On 2010 Nov 16, Adam Swift wrote: What you seem to be describing shouldn't be possible (unless you've added property accessors to NSManagedObject via a category) I definitely have not done that. I subclass NSManagedObject. Let's step back a little here: You should be able to use the

Re: Core Data: During Migration, should use Primitive Accessors only?

2010-11-16 Thread Quincey Morris
On Nov 16, 2010, at 15:55, Jerry Krinock wrote: You should be able to use the standard KVC accessors during migration, NSManagedObjects will respond to the foo/setFoo: laccessors for properties defined in your managed object model. Well, -foo and -setFoo: won't even compile unless I

What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread eveningnick eveningnick
Hello! I have to write an application, that should run on the background. When the user needs, it should display some control panel. On Windows system i would have used System tray, and an icon there - when the user clicks on that icon, it displays some GUI. but what is the Mac's usual practice? I

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Eeyore
I fumble-fingered the first message and sent it without actually typing anything. Sorry for the noise if the moderator didn't catch it. Someone may know an approved Apple method, but here are some things that are out there now you could emulate. You could have it in Applications and use a menu

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/16/10 5:27 PM, eveningnick eveningnick wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should display some control panel. On Windows system i would have used System tray, and an icon

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Kiel Gillard
http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/PreferencePanes/PreferencePanes.html On 17/11/2010, at 12:27 PM, eveningnick eveningnick wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should display some

Re: problem with right click jump to definition

2010-11-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/16/10 1:51 PM, Rajendran P wrote: HI all , I am currently using a custom make file to build my project file , when i right click and say Jump to definition. it is no going to definition file for methods defined in frameworks like

QTKit

2010-11-16 Thread albert jordan
I am trying to study the performance of non standard codec relative to H.264. I was wondering if there was a straight forward way to add compression options to QTCompressionOptions object. If this is not the best approach, what is the recommended strategy to implement a proprietary codec?

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Gregory Weston
Conrad Shultz wrote: On 11/16/10 5:27 PM, eveningnick eveningnick wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should display some control panel. On Windows system i would have used System tray, and an icon there - when the user

Re: add a icon to window title bar ?

2010-11-16 Thread Gregory Weston
Rajendran P wrote: Hi , I am developing a non document based App. i need to add an icon to its main window title bar before the title string , any input on how to implement it would be help full Found something in the list archives from 2008. You can use: [[window

Re: Third Party Material

2010-11-16 Thread Gregory Weston
Richard Somers wrote: I just noticed that Apple's Keynote, Pages, and Numbers '08 applications acknowledge the following material. Mike Ferris ˆ (MOKit) Portions Copyright © 1996-2002 Mike Ferris. All Rights Reserved. Kurt Revis ˆ (SNDisclosableView/SNDisclosureButton) Copyright ©

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Kyle Sluder
On Tue, Nov 16, 2010 at 5:27 PM, eveningnick eveningnick eveningn...@gmail.com wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should display some control panel. On Windows system i would have used System tray, and an icon there - when

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread John Joyce
On Nov 17, 2010, at 12:40 PM, Kyle Sluder wrote: On Tue, Nov 16, 2010 at 5:27 PM, eveningnick eveningnick eveningn...@gmail.com wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should display some control panel. On Windows system i

Re: libsvn_client for IOS

2010-11-16 Thread Andrew McLaughlin
I'm curious. What will you use svn for from iOS? is this for mobile access to a repository? Or something else? Piko Sent from my iPhone On Nov 14, 2010, at 11:51 AM, James West jww...@gmail.com wrote: I'd like to add support for svn to my ios project, but I notice that libsvn_client is not

Query on writing a Cocoa plugin

2010-11-16 Thread Santhosh Kumar Behara
hi,   To write cocoa parser plugin for 3gp or MKV file format(for MAC OS on PC) do we need to write in any specific plugin pattern/format.    If not can we add our own member functions into this plugin in which case the host application needs to know the prototypes of the member functions

Detecting shared folders

2010-11-16 Thread Leo
Hi, I wonder if it's possible to detect a shared folder? That is a folder that is shared via File Sharing. Am I missing something obvious? I couldn't find an appropriate folder attribute in either Cocoa or AppleScript. Or any other way to distinguish a shared folder from other folders. I also

NSBrowser and column's titles

2010-11-16 Thread Bruno Causse
hi, When I instantiate my browser from XIB file, and when i play with hierarchy, the column 's titles do not appear. Only after the resize the window (container), that the conportment of titles is correct. have you a solution to fix this? thank.

Re: NSSavePanel panel:shouldShowFilename:

2010-11-16 Thread Leo
From: Quincey Morris quinceymor...@earthlink.net a number of system extensions (like Default Folder, but I think that wasn't the first) added the ability to option-click on a disabled item to prefill the text field with an existing name, At some point (possibly Mac OS X 10.0), Apple quietly

Cocoa and Objective-C up and running

2010-11-16 Thread Jean-Christophe Helary
I am just starting to work on Scott Stevenson's book as a total programming beginner and I am wondering if there is a place to discuss beginner's issues (I just completed the first part of the introduction to C concepts) or the contents of the book itself. Jean-Christophe Helary

Intercept network traffic on specific port

2010-11-16 Thread Lionel Pinkhard
Hi I'm trying to achieve a kind of proxy/filter effect for a specific TCP/IP port. I want my application to act as a server to all other applications on the system for that specific port. For example, Safari connects to site www.whatever.com on port 412. My application is intercepting on port

Re: Intercept network traffic on specific port

2010-11-16 Thread Kyle Sluder
On Tue, Nov 16, 2010 at 3:19 AM, Lionel Pinkhard lio...@breezysoft.comwrote: Hi I'm trying to achieve a kind of proxy/filter effect for a specific TCP/IP port. I want my application to act as a server to all other applications on the system for that specific port. For example, Safari

Re: Detecting shared folders

2010-11-16 Thread Ken Thomases
On Nov 15, 2010, at 4:01 AM, Leo wrote: I wonder if it's possible to detect a shared folder? That is a folder that is shared via File Sharing. It would seem to be possible, since the Finder puts a banner in the window for shared folders. Am I missing something obvious? Not obvious, no. I

Re: Maths package for 128/256 bit integers?

2010-11-16 Thread Yung-Luen Lan
You may check Accelerate.framework. It utilized the SIMD for performance for up to 1024bit operands. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man7/vBigNum.7.html Regards. yllan On Mon, Nov 15, 2010 at 7:14 AM, William Squires wsqui...@satx.rr.com wrote: I

Re: What is Mac's custom for an agent to display its GUI?

2010-11-16 Thread Jean-Daniel Dupas
Le 17 nov. 2010 à 05:21, John Joyce a écrit : On Nov 17, 2010, at 12:40 PM, Kyle Sluder wrote: On Tue, Nov 16, 2010 at 5:27 PM, eveningnick eveningnick eveningn...@gmail.com wrote: Hello! I have to write an application, that should run on the background. When the user needs, it should