Notification of CD-ROM inserted

2010-11-21 Thread Bilel Mhedhbi
Hi there, I want my application to be notified when a CD-ROM is inserted. I came with two solutions: watching /etc/fstab (but the os doesn't use it) and watching the /Volumes/ directory. What can you advice me?? Thanks! ___ Cocoa-dev mailing list (C

Re: forcing accessibility focus

2010-11-21 Thread Travis Siegel
On Nov 12, 2010, at 3:15 PM, Kenny Leung wrote: Hi All. I'm working on accessibility in an app, and would like to have a view pop up on screen and immediately become the focused item so that its text will be spoken. There seems to be no call to "becomeAccessibilityFocus" like there is "b

define IBOUtlet connection in design time

2010-11-21 Thread Yuriy Velichko
Hello I create my IB plug-in, and can't resolve next task. I need detect when happens connecting the outlet between objects. I cant find, what message goes to object (or Inspector class or else ) to notify them about connecting outlet, at design time of course. (I'm sure this is not

Re: Running JavaScript in iOS WebView.

2010-11-21 Thread Adrian Petrescu
For what it's worth, that framework is definitely fine on iOS. I've used it successfully myself at least twice. On Wed, Nov 17, 2010 at 2:07 PM, Conrad Shultz < con...@synthetiqsolutions.com> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/17/10 1:33 PM, Geoffrey Holden wrote:

Web services core problem

2010-11-21 Thread Vaibhao
Hi I m using Web Services Core framework to access a https based SOAP- Web service .But I am getting a error as "/FaultCode" = -65794; "/FaultExtra" = { domain = -1; error = -65795; msg = "No valid XML data in response"; };

how to add a custom view (a pair of controls) to an NSToolbar in Interface Builder

2010-11-21 Thread Rua Haszard Morris
I would like to add an item to my window's toolbar that is a custom view containing other standard views. For example a popup button and a static text field. If possible I would like to do this in interface builder, without implementing NSToolbarDelegate. So to clarify.. I have a window with a

Customised NSCell leaves dirty traces while scrolling

2010-11-21 Thread Josh Yu
Hey guys I was implementing a customised NSCell into NSTableView and it leaves dirty traces while scrolling up bit by bit. The cell was subclassed from NSTextFieldCell, using drawInteriorWithFrame: and coordinates to locate and place elements inside (drawInRect for NSStrings whatever). The NSTabl

Problem with soap based https Web service call using Web Services core

2010-11-21 Thread Vaibhao
hello, I m using Web Services Core framework to access a https based SOAP- Web service .I am getting a error as "/FaultCode" = -65794; "/FaultExtra" = { domain = -1; error = -65795; msg = "No valid XML data in response"; };

Re: Notification of CD-ROM inserted

2010-11-21 Thread Sherm Pendley
On Wed, Nov 17, 2010 at 9:53 AM, Bilel Mhedhbi wrote: > > I want my application to be notified when a CD-ROM is inserted. Watch for NSWorkspaceDidMountNotification notifications. See: < http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Clas

Re: Notification of CD-ROM inserted

2010-11-21 Thread Dave Keck
I'd use either NSWorkspaceDidMountNotification or DARegisterDiskAppearedCallback() of the DiskArbitration framework. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Help with Basics (Was: help with bindings)

2010-11-21 Thread Rounak Jain
Thanks Jerry, I have used the dictionaryWithObjectsAndKeys: method. I have implemented your suggestions regarding "convenience constructors" and myKeys object. Regarding your comment about making everything "mutable", I think, at the moment, it has to be that way. What's next? #import @inter

Re: Customised NSCell leaves dirty traces while scrolling

2010-11-21 Thread jonat...@mugginsoft.com
On 20 Nov 2010, at 07:24, Josh Yu wrote: > > > A call to NSTableView setNeedsDisplay:YES will always solve the > problem however too inefficient. > > Can anyone please suggest if there's anything might be done to fix that up? > > kjoika > ___ > Try

Re: NSExpression is incorrect?

2010-11-21 Thread Ben Haller
Another option would be to make your code mimic whatever NSExpression is doing on that machine, by evaluating 2 ** 3 ** 2 (once, and caching the result) and seeing whether it comes out as 64 or 512. That way if/when Apple fixes their bug, your code will seamlessly follow suit. Which of the

Re: Help with Basics (Was: help with bindings)

2010-11-21 Thread Ricky Sharp
On Nov 21, 2010, at 2:59 AM, Rounak Jain wrote: > Thanks Jerry, > I have used the dictionaryWithObjectsAndKeys: method. > I have implemented your suggestions regarding "convenience constructors" and > myKeys object. Regarding your comment about making everything "mutable", I > think, at the mom

Re: Help with Basics

2010-11-21 Thread Rounak Jain
> As Jerry pointed out, you need to learn the basics; please read up on the > basics to include memory management. I am using Garbage collector. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Help with Basics

2010-11-21 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rounak Jain wrote: >> As Jerry pointed out, you need to learn the basics; please read up on the >> basics to include memory management. > > I am using Garbage collector. ___ The previous comments still sta

Core data fetch and multithreading

2010-11-21 Thread vincent habchi
Hi there, briefly speaking, I have a Core Data Entity bearing a to-many relationship (therefore an NSSet * iVar). A dialog on the main thread can modify this set, while it may be simultaneously enumerated on a background GCD thread. I have therefore used the managed object context provided mute

Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread vincent habchi
Le 21 nov. 2010 à 20:09, Dave Zwerdling a écrit : > The issue lies in this: I have a background-thread reader of entities. > Because it is multithreaded, it uses a separate MOC for the entities to be > read. These MOCs have their persistent store coordinator the same as the > document. The b

Re: Core data fetch and multithreading

2010-11-21 Thread vincent habchi
Le 21 nov. 2010 à 21:39, Quincey Morris a écrit : > It's not an ivar, it's a property. You're perfectly right. > You can't modify a NSSet. I suspect you mean "modify this relationship", but > the ambiguity leads me to wonder if you're trying to do something funky here. > Not that it's relevant

Re: Core data fetch and multithreading

2010-11-21 Thread Quincey Morris
On Nov 21, 2010, at 11:47, vincent habchi wrote: > briefly speaking, I have a Core Data Entity bearing a to-many relationship > (therefore an NSSet * iVar). It's not an ivar, it's a property. > A dialog on the main thread can modify this set, You can't modify a NSSet. I suspect you mean "modif

Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread Dave Zwerdling
Hi everyone, Here's the context: I have a Core-Data document-based application. There is an importer which creates new data to be imported into the document. When the user specifies, particular entities are then moved into the document's MOC. Because the imported can run prior to a document's

Re: Core data fetch and multithreading

2010-11-21 Thread Quincey Morris
On Nov 21, 2010, at 12:50, vincent habchi wrote: > Exactly, that's why I want to change. Note that my needs are fairly basic, so > I didn't see the point of entering into a more complex scheme. I think the point is that it's far *less* complex because the code to deal with a second MOC should b

Re: Core data fetch and multithreading

2010-11-21 Thread vincent habchi
Quincey: > I think the point is that it's far *less* complex because the code to deal > with a second MOC should be a lot simpler than the thread locking code. Plus, > the chances are that your locking code is wrong. :) (Trust me, that's not a > dig at you personally. But multithreading interlo

Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread Dave Zwerdling
On Nov 21, 2010, at 11:37 AM, vincent habchi wrote: > Le 21 nov. 2010 à 20:09, Dave Zwerdling a écrit : > >> The issue lies in this: I have a background-thread reader of entities. >> Because it is multithreaded, it uses a separate MOC for the entities to be >> read. These MOCs have their per

Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread Kyle Sluder
On Sun, Nov 21, 2010 at 2:32 PM, Dave Zwerdling wrote: > > On Nov 21, 2010, at 11:37 AM, vincent habchi wrote: > > > Le 21 nov. 2010 à 20:09, Dave Zwerdling a écrit : > > > >> The issue lies in this: I have a background-thread reader of entities.   > >> Because it is multithreaded, it uses a separ

Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread Dave Zwerdling
On Nov 21, 2010, at 2:47 PM, Kyle Sluder wrote: > On Sun, Nov 21, 2010 at 2:32 PM, Dave Zwerdling wrote: >> >> On Nov 21, 2010, at 11:37 AM, vincent habchi wrote: >> >>> Le 21 nov. 2010 à 20:09, Dave Zwerdling a écrit : >>> The issue lies in this: I have a background-thread reader of ent

Re: Re: Customised NSCell leaves dirty traces while scrolling

2010-11-21 Thread Josh Yu
> Try overriding NSCell - drawWithFrame:inView: > IIRC this is called before - drawInteriorWithFrame:InView: > The default implementation of - drawWithFrame:inView: is perhaps the source > of your unwanted drawing. > Regards > Jonathan Mitchell Thanks Jonathan for your reply. I've tried replac

Re: Loading NSManagedObjects across NSManagedObjectContexts in an unsaved NSPersistentDocument

2010-11-21 Thread vincent habchi
Le 22 nov. 2010 à 00:38, Dave Zwerdling a écrit : > I have a fetcher which provides managed objects into the persistent store. I > also have a class which needs to read the objects from another MOC because it > is being run in a background thread. You've somehow run into the same issue than