Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
Just to follow up on my own question... What I am attempting to do is not working. -valueForKey: does not look for methods with -respondsToSelector: to figure out if methods exist sufficient to have KVC. So overriding this has no effect. My only option, it seems, is to use

CoreData, failed to process pending changes before save.

2008-07-08 Thread Yoann GINI
Hi all, I work actually on CoreData with many loop for operate on ManagedObjects. When I try to save my ManagedObjectContext I obtain this error : Failed to process pending changes before save. The context is still dirty after 100 attempts. Typically this recursive dirtying is caused

Re: How to support dictionary service in a custom text view?

2008-07-08 Thread Evan Gross
On 08/07/08 12:16 AM, Charles Srstka [EMAIL PROTECTED] wrote: Yes, but I think this check box is not relevant to this functionality. At any rate, my accessibility methods get called when I type command- control-D, whether the check box is turned on or not. If I comment out my Accessibility

Proposal for metadata interoperability on OS X

2008-07-08 Thread ab_lists
A lot of discussion on different application user forums seem to be going on regarding the exchange of metadata between different applications. Apple has provided parts of a possible solution in the latest versions of Mac OS X but nothing that can be seen as the final verdict. First some

Re: controlling system muting ?

2008-07-08 Thread Mike Abdullah
Search the archives, someone fairy recently open sourced a nice NSSound category that allows volume control, just to make your life easier. Mike. On 8 Jul 2008, at 04:25, Jason Bobier wrote: Hey folks, Has anyone figured out how to control a machine's volume level (specifically muting)

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Mike Abdullah
On 8 Jul 2008, at 07:10, Steve Weller wrote: Just to follow up on my own question... What I am attempting to do is not working. -valueForKey: does not look for methods with -respondsToSelector: to figure out if methods exist sufficient to have KVC. So overriding this has no effect. My

Re: More CALayer Questions

2008-07-08 Thread Scott Anguish
I've got a longer answer coming... but There are two ways to interact with layers. - making a view layer-backed (that is, the view and its subviews will use CALayers as a caching mechanism) - using a view to host layers (inserting your custom layers into the layer hierarchy with the view's

Re: More CALayer Questions

2008-07-08 Thread Scott Anguish
It's hard to tell, but if you're using a view that you expect to both draw its own content, and that you expect to manipulate and interact directly with the layer (i.e. adding sublayers) you'll have issues. From the hybrid app docs in Animation Overview You can use a combination of

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Scott Anguish
On Jul 8, 2008, at 3:52 AM, [EMAIL PROTECTED] wrote: I'm looking to start a discussion on this list that can be of benefit to all of us and hopefully Apple will take notice and may take our ideas to heart while they're working on 10.6. while the discussion would be interesting, I'll note

Re: Why aren't my bindings firing?

2008-07-08 Thread Scott Anguish
If you feel that the bindings doc is unclear about this, thats one thing to claim, and something to file a bug about. I can't guarantee that it'll change though. I've never heard the argument that we have two different types of bindings before this thread. but if you're arguing with mmalc

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread ab_lists
I'm following up on my own post because I received two comments that made me realise I should clarify why I want this discussion here on this list. 1. You should file a bug report with Apple. This is the intention (and I know that at least one person has filed a request already), but I

Re: controlling system muting ?

2008-07-08 Thread Antonio Nunes
On 8 Jul 2008, at 10:25, Mike Abdullah wrote: Search the archives, someone fairy recently open sourced a nice NSSound category that allows volume control, just to make your life easier. That would be me :-) The thread appears to be hard to find in the archives, so here is a link:

How to indent in NSOutlineView?

2008-07-08 Thread Aman Alam
Is there a way to indent main headings in NSOutlineView as follows: - Heading 1 Item Item Heading 2 Item Heading 2.1 Item Item Heading 3 Item I tried many ways to indent the

Re: Efficiently receiving data from an NSTask

2008-07-08 Thread Martin Hairer
Hi all, Right now, I am doing the following instead. In the thread that launched the NSTask (call that the master thread), I poll data from stdout until the task has died: Coming back to the original question: is it legal to have one thread accessing the NSFileHandle bound to the stdout of an

Re: controlling system muting ?

2008-07-08 Thread matt . gough
On 8 Jul 2008, at 6:24am, Phil wrote: However, I would urge you not to mess around with the user's volume control, even you think it is an emergency---the user may feel very differently. Your application should play an alert sound, and trust that the user's system output volume and alert

Removing folder from /Applications

2008-07-08 Thread Glover,David
Hi there, I've create a little app that is required to remove an obsolete folder from /Applications. This works fine when the user is logged in as an Admin, but not when logged in as a Standard user, as they obviously require authorization. So, I added some code to request an Admin

Re: Removing folder from /Applications

2008-07-08 Thread Robert Cerny
On 8.7.2008, at 12:52, Glover,David wrote: Hi there, I've create a little app that is required to remove an obsolete folder from /Applications. This works fine when the user is logged in as an Admin, but not when logged in as a Standard user, as they obviously require authorization. So,

Re: controlling system muting ?

2008-07-08 Thread Andreas Mayer
Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]: 2. Bring up an alert and after a set amount of time without the user responding to it, then start making things louder. Don't. If I mute the sound, I don't want to hear a thing, even if this machine is going to blow up. Should I

RE: Removing folder from /Applications

2008-07-08 Thread Glover,David
Hi, here is the code; [...] // create the authorization reference... AuthorizationRef myAuthorizationRef; OSStatus myStatus; myStatus = AuthorizationCreate (NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, myAuthorizationRef);

Re: controlling system muting ?

2008-07-08 Thread Kyle Sluder
On Tue, Jul 8, 2008 at 6:46 AM, [EMAIL PROTECTED] wrote: 1. Give the user a preference setting 'Allow Your app to override system sound level for critical alerts' I don't think having a preference that essentially states I am a blathering idiot and you know better than me. When I mute my

Re: Calculating accurate bounds of stroked paths

2008-07-08 Thread Matt Gough
Graham, I know this issue has cropped up before (probably on the Quartz list). Have your searched its archives? A simple answer to this sort of question involves painting the path into a bitmap and hunting for the boundary Matt On 8 Jul 2008, at 2:16pm, Graham Cox wrote: I need to know

Re: controlling system muting ?

2008-07-08 Thread Andy Lee
On Jul 8, 2008, at 8:18 AM, Matt Gough wrote: To be fair to the OP, if his app really is going to try to warn me of impending injury or potential loss of life then I think it is silly to argue that he shouldn't turn the sound up as loud as it can go and start telling me to run. I think you

Re: Calculating accurate bounds of stroked paths

2008-07-08 Thread Kai
Hi, have you checked CGContextReplacePathWithStrokedPath (CGContextRef c) ? This together with CGRect CGContextGetPathBoundingBox (CGContextRef c) might do the trick for you. Best, Kai On 8.7.2008, at 14:16, Graham Cox wrote: I need to know a rect within which all pixels will be painted

[SOLVED - But an other question]: CoreData, failed to process pending changes before save.

2008-07-08 Thread Yoann GINI
I've solve my problem due to a saving operation in the NSManagedObjectContextObjectsDidChangeNotification notification. Actually I use the NSManagedObjectContextDidSaveNotification for my test, but this notification is send only when the save action is done. I would me notified for each

iPhone SDK and sms.db file

2008-07-08 Thread aletemp2002-mail
Hello, I hope this is the right mailing list, because I couldn't find anything iPhone-related. I need to read the sms.db file (~/Library/SMS/sms.db). I need to put the content of the file into a NSData object, so I read the file using [NSData dataWithContentsOfFile: @~/Library/SMS/sms.db].

Re: iPhone SDK and sms.db file

2008-07-08 Thread lbland
On Jul 8, 2008, at 10:29 AM, [EMAIL PROTECTED] wrote: I hope this is the right mailing list, because I couldn't find anything iPhone-related. Oh, the humanity of it all! I'm busting at the seams waiting for Xcode 3.1 et. al. to come out of NDA, and out of beta! Mainly because I want

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
On Jul 8, 2008, at 2:28 AM, Mike Abdullah wrote: On 8 Jul 2008, at 07:10, Steve Weller wrote: What I am attempting to do is not working. -valueForKey: does not look for methods with -respondsToSelector: to figure out if methods exist sufficient to have KVC. So overriding this has no

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
There exists a great way for all applications to share 'Address Book' data on OS X. The same cannot be said for user - entered meta data. Things such as tags, urls, etc, have no conventions for interoperability. Right now the only 'standard' user entered meta-data is the Finder comments

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Mac QA
On Tue, Jul 8, 2008 at 10:45 AM, Tom Andersen [EMAIL PROTECTED] wrote: User Entered tags: -- stored: under the keyword: kXATTR_UserTags value: NSArray of NSStrings. No hierarchy, maximum tag length 100 chars, maximum number of tags 100, Guidelines: tags should be

Don't Understand KVC Error Using Array Operators

2008-07-08 Thread Jon Gordon
I can't understand why I'm getting an exception when I try to use the array operators. Here's what I'm trying to do. One instance variable is a NSMutableArray named contacts. This array contains instances of objects that have a call property, which is an NSString. I have another

Re: iPhone SDK and sms.db file

2008-07-08 Thread I. Savant
On Tue, Jul 8, 2008 at 10:29 AM, [EMAIL PROTECTED] wrote: I hope this is the right mailing list, because I couldn't find anything iPhone-related. http://www.cocoabuilder.com/archive/message/cocoa/2008/6/27/211361 http://www.cocoabuilder.com/archive/message/cocoa/2008/6/27/211364

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
As I said, all numbers are fanciful. I just wanted to get a discussion started. From our point of view I would prefer a much much smaller limit. There needs to be limits so that we can design interface around these attributes, and it seems also for technical reasons on the size of an

Re: Why aren't my bindings firing?

2008-07-08 Thread Hamish Allan
On Tue, Jul 8, 2008 at 5:29 AM, Ron Lue-Sang [EMAIL PROTECTED] wrote: KVB is an informal protocol. So Cocoa Bindings™(R) provides a concrete implementation (on NSObject) of the KVB protocols. In addition to providing a KVB implementation, Cocoa Bindings(R)™ adds a set of reusable controllers

Re: Don't Understand KVC Error Using Array Operators

2008-07-08 Thread Ron Lue-Sang
On Jul 8, 2008, at 8:02 AM, Jon Gordon wrote: I can't understand why I'm getting an exception when I try to use the array operators. Here's what I'm trying to do. One instance variable is a NSMutableArray named contacts. This array contains instances of objects that have a call

Re: iPhone SDK and sms.db file

2008-07-08 Thread Hamish Allan
On Tue, Jul 8, 2008 at 3:29 PM, [EMAIL PROTECTED] wrote: I hope this is the right mailing list, because I couldn't find anything iPhone-related. Just out of interest, what search terms did you use? Because it seems likely to me that searching for iphone would have given you a fairly

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Mike Abdullah
On 8 Jul 2008, at 15:45, Steve Weller wrote: On Jul 8, 2008, at 2:28 AM, Mike Abdullah wrote: On 8 Jul 2008, at 07:10, Steve Weller wrote: What I am attempting to do is not working. -valueForKey: does not look for methods with -respondsToSelector: to figure out if methods exist

Re: Don't Understand KVC Error Using Array Operators

2008-07-08 Thread Jon Gordon
D'oh! -H. Simpson I made the change, and it works perfectly now. Thanks very much! On Jul 8, 2008, at 11:44 AM, Ron Lue-Sang wrote: On Jul 8, 2008, at 8:02 AM, Jon Gordon wrote: I can't understand why I'm getting an exception when I try to use the array operators. [SNIPPAGE]

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread ab_lists
On 08 Jul 2008, at 17:43, Hamish Allan wrote: It's worth noting that there is already something of a de facto tag structure in SpotMeta (http://www.fluffy.co.uk/spotmeta/spotmeta_org.html). SpotMeta hasn't been updated for Leopard (the COM swizzling stuff has stopped working) but it's under

problem with IKImageView and filters

2008-07-08 Thread hsanderson
Hi all, I am trying to write a basic image diff-ing tool consisting of two overlaid IKImageViews, with the topmost view having a Difference Blend Mode compositing filter applied to it in IB's Effects palette. So far so good... until I call -setImageWithURL: to put images into these

Re: controlling system muting ?

2008-07-08 Thread Matt Neuburg
On Mon, 07 Jul 2008 23:25:34 -0400, Jason Bobier [EMAIL PROTECTED] said: Hey folks, Has anyone figured out how to control a machine's volume level (specifically muting) from code? I know that you can do it from Applescript, but running an applescript from code seems to be a rather clunky

Re: controlling system muting ?

2008-07-08 Thread I. Savant
Always worthwhile checking the archives before posting. The technique is pretty well demonstrated here: http://www.cocoabuilder.com/archive/message/cocoa/2008/3/12/201211 Wherein I respond: http://www.cocoabuilder.com/archive/message/cocoa/2008/3/13/201268 ... and I stick by that

[ANN] RegexKitLite 2.0

2008-07-08 Thread John Engelhart
I've just pushed out RegexKitLite 2.0. Documentation: http://regexkit.sourceforge.net/RegexKitLite/index.html Download: http://downloads.sourceforge.net/regexkit/RegexKitLite-2.0.tar.bz2 (~40K) Xcode 3.0 integrated docs: feed://regexkit.sourceforge.net/RegexKitLiteDocSets.atom RegexKitLite

[Moderator] Re: iPhone SDK and sms.db file

2008-07-08 Thread Scott Anguish
On Jul 8, 2008, at 10:29 AM, [EMAIL PROTECTED] wrote: Hello, I hope this is the right mailing list, because I couldn't find anything iPhone-related. Unfortunately, it isn't. The non-disclosure prohibits discussion of the SDK in public. That includes this mailing list.

MIDI Sequencing

2008-07-08 Thread James Maxwell
Since it seems as though the MusicKit has pretty much had its day, is there any straightforward-ish way of creating MIDI apps in Cocoa? I need a music sequencing back-end for my current project. Any thoughts appreciated. J. ___ Cocoa-dev mailing

Re: Removing folder from /Applications

2008-07-08 Thread Nick Zitzmann
On Jul 8, 2008, at 6:20 AM, Glover,David wrote: myStatus = AuthorizationCopyRights (myAuthorizationRef, myRights, kAuthorizationEmptyEnvironment, myFlags, NULL); if ([NSFm removeFileAtPath:

Re: Delete action from variety of key presses

2008-07-08 Thread Nathan Vander Wilt
On Jul 7, 2008, at 5:07 PM, Graham Cox wrote: The view that is first responder needs to override -keyDown: and do this: [self interpretKeyEvents:[NSArray arrayWithObject:event]]; which hooks the event into the standard dispatcher for these methods. (One thing that has long puzzled

Re: problem with IKImageView and filters

2008-07-08 Thread douglas a. welton
Hi Hamish, Am I reading correctly that you have two IKImageViews stacked on top on one another? Is there a reason that you aren't using Core Image and using one of the compositing filters to produce a difference that you can then display? do the items you are currently displaying in

Re: Sub-classing NSAtomicStore

2008-07-08 Thread Melissa J. Turner
Todd - I'd suspect one of two things: 1) Your store's metadata method isn't returning the same identifier (ie @AtomicStore) you're passing to addPersistentStore, so the coordinator thinks the store isn't what the caller of addPersistentStore said it would be 2) Your store's metadata

Re: controlling system muting ?

2008-07-08 Thread Matt Neuburg
On or about 7/8/08 10:56 AM, thus spake I. Savant [EMAIL PROTECTED]: AudioDeviceSetProperty() is of course more efficient but unless you're muting/unmuting the overall system volume fifty times per second, the user truly won't notice, therefore AppleScript will work **JUST FINE**. ;-) But

Re: Removing folder from /Applications

2008-07-08 Thread Chris Hanson
On Jul 8, 2008, at 11:19 AM, Nick Zitzmann wrote: On Jul 8, 2008, at 6:20 AM, Glover,David wrote: myStatus = AuthorizationCopyRights (myAuthorizationRef, myRights, kAuthorizationEmptyEnvironment, myFlags, NULL);

Re: controlling system muting ?

2008-07-08 Thread I. Savant
But that isn't what the OP asked. The OP asks *how* to do it without AppleScript - not *whether* to do it without AppleScript. Furthermore, the OP is right that running an AppleScript from within Cocoa/Objective-C is noticeably slower than going thru CoreAudio. m. Actually, the OP said,

Working with Paragraphs in Core Text

2008-07-08 Thread Iain Delaney
Hi All, I'm trying to format some text using the new Leopard Core Text API. Paragraphs, and the CTParagraphStyle object seem to have been passed over in the documentation, getting just a cursory mention. Has anyone else managed to get paragraph styles to work? I'm looking for a simple example

IKImageView in mode IKToolModeCrop issue

2008-07-08 Thread Janusz Sidor
Hi, I have problem with IKImageView in mode IKToolModeCrop. In documentation there is written: The selection and crop tools copy the selected areas to the pasteboard So I implemented accessing pasteboard, but after crop operation, or selection, pasteboard is still empty. Maybe I'm accesing

Re: Removing folder from /Applications

2008-07-08 Thread Jean-Daniel Dupas
Le 8 juil. 08 à 21:59, Chris Hanson a écrit : On Jul 8, 2008, at 11:19 AM, Nick Zitzmann wrote: On Jul 8, 2008, at 6:20 AM, Glover,David wrote: myStatus = AuthorizationCopyRights (myAuthorizationRef, myRights, kAuthorizationEmptyEnvironment, myFlags, NULL);

Re: Working with Paragraphs in Core Text

2008-07-08 Thread Ricky Sharp
On Jul 8, 2008, at 3:23 PM, Iain Delaney wrote: I'm trying to format some text using the new Leopard Core Text API. Paragraphs, and the CTParagraphStyle object seem to have been passed over in the documentation, getting just a cursory mention. Has anyone else managed to get paragraph

Re: NSTableView and CoreAnimation

2008-07-08 Thread Brent Fulgham
On Tue, May 20, 2008 at 8:38 PM, Jens Alfke [EMAIL PROTECTED] wrote: As you can see, move steps of the NSTableView are persistent and this is really visible when the animation is running. I enabled layers so I could cause some buttons to fade in and out of visibility, and noticed this problem

Re: Errors from NSTreeController (or NSOutlineView?)

2008-07-08 Thread Brent Fulgham
On Fri, May 23, 2008 at 3:53 PM, Hamish Allan [EMAIL PROTECTED] wrote: On Fri, May 23, 2008 at 11:11 PM, Brent Fulgham [EMAIL PROTECTED] wrote: unexpected state: found the same object more than once, but can't find the treenode for it b) my add/remove test is leaving some vestige of the node

Re: How to indent in NSOutlineView?

2008-07-08 Thread John Terranova
The most likely solution, off the top of my head, would involve subclassing the NSOutlineView and overriding some method to tell Cocoa to indent some rows more than others. Here is one possibility. I don't know that it works, but it might. Try it and see. // you would need to subclass

Re: [NSTextStorage/NSAttributedString] How can we know the height of a rendered string?

2008-07-08 Thread Stéphane Sudre
On Jul 8, 2008, at 1:26 AM, Jean-Daniel Dupas wrote: Le 7 juil. 08 à 23:54, Stéphane Sudre a écrit : On Jul 6, 2008, at 11:26 PM, Jean-Daniel Dupas wrote: Le 6 juil. 08 à 21:25, Stéphane Sudre a écrit : Problem: I would like/need to know the height that would be required to

Re: [NSTextStorage/NSAttributedString] How can we know the height of a rendered string?

2008-07-08 Thread Douglas Davidson
On Jul 8, 2008, at 3:44 PM, Stéphane Sudre wrote: What I mean by incorrect value is that if I draw the string inside a rectangle whose width is inMaxWidth and height is the value obtained from the rect returned by usedRectForTextContainer:, the last line of the string is clipped outside

Re: Working with Paragraphs in Core Text

2008-07-08 Thread Iain Delaney
I was having problems with both the creation of the style and the application of it. I think you example will work once I have the style defined, but I'm still not clear on how you make the style. The documentation is short of examples on this topic. On 8-Jul-08, at 5:53 PM, Ricky Sharp

Re: Working with Paragraphs in Core Text

2008-07-08 Thread Ricky Sharp
On Jul 8, 2008, at 6:13 PM, Iain Delaney wrote: I was having problems with both the creation of the style and the application of it. I think you example will work once I have the style defined, but I'm still not clear on how you make the style. The documentation is short of examples on

Distributed Objects connection went invalid while waiting for a reply

2008-07-08 Thread Hamish Allan
I'm seeing connection went invalid while waiting for a reply in a DO callback. The client passes self in a call to the server; some time later, the server calls a method on that client (proxy), the program hangs for a second or so, the connection went invalid connection appears, but the method

Re: [NSTextStorage/NSAttributedString] How can we know the height of a rendered string?

2008-07-08 Thread Stéphane Sudre
On Jul 6, 2008, at 11:26 PM, Jean-Daniel Dupas wrote: Le 6 juil. 08 à 21:25, Stéphane Sudre a écrit : Problem: I would like/need to know the height that would be required to render a string inside a fixed width box. Solution that does not work: So

Re: How to support dictionary service in a custom text view?

2008-07-08 Thread Charles Srstka
On Jul 8, 2008, at 2:06 AM, Evan Gross wrote: t probably should, though - otherwise all you're seeing is the Dictionary service taking advantage of it's power to get something it needs via accessibility. It tries a number of things to both succeed and get the best attribute and positioning

NSDateFormatter and NSCell oddness

2008-07-08 Thread thatsanicehatyouhave
Hello, I'm trying to replicate the Finder's behaviour for date fields when resizing. I found this on the archives which pretty much has the answer: http://www.cocoabuilder.com/archive/message/cocoa/2005/8/9/143911 I'm trying to update it so that it returns the correct value for the

Importing Xcode 2.x projects into Xcode 3

2008-07-08 Thread John Joyce
Are there any caveats when importing an XCode 2.x project into XCode 3? I seem to have NIBs that are no longer connected properly... It could be something I did (or did not do properly), but just curious if anybody else has had any issues. ___

Re: Importing Xcode 2.x projects into Xcode 3

2008-07-08 Thread j o a r
On Jul 8, 2008, at 6:03 PM, John Joyce wrote: Are there any caveats when importing an XCode 2.x project into XCode 3? I seem to have NIBs that are no longer connected properly... It could be something I did (or did not do properly), but just curious if anybody else has had any issues. I

Re: Why aren't my bindings firing?

2008-07-08 Thread Scott Anguish
On Jul 8, 2008, at 11:33 AM, Hamish Allan wrote: Scott, for what it's worth, I really don't agree with you that Cocoa Bindings and KVB are the same thing or that there is no distinction. Ron just said the same thing. I now understand that they are not two different types of bindings:

Re: [NSTextStorage/NSAttributedString] How can we know the height of a rendered string?

2008-07-08 Thread Stéphane Sudre
On Jul 9, 2008, at 12:53 AM, Douglas Davidson wrote: On Jul 8, 2008, at 3:44 PM, Stéphane Sudre wrote: What I mean by incorrect value is that if I draw the string inside a rectangle whose width is inMaxWidth and height is the value obtained from the rect returned by

Quick look preview multipage rich text

2008-07-08 Thread Philip Dow
Hi all, I am trying to generate multipage pdf data for display in a quick look preview from rich text attributed string data. Attributed strings don't know anything about pages, so it seems to me that I'll have to go through the OS printing architecture to generate the multipage pdf

Re: Importing Xcode 2.x projects into Xcode 3

2008-07-08 Thread Vitaly Ovchinnikov
I have problems with connecting actions from custom cotrnols. It is impossible to drag an action from my own control (subclassed NSControl) in IB3.0. I downloaded IB3.1 from iPhone SDK and all work fine there. On Wed, Jul 9, 2008 at 5:33 AM, j o a r [EMAIL PROTECTED] wrote: On Jul 8, 2008, at

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
Thanks for the pointers. I'll take a look. I should note that this isn't an computer emergency, this is a real emergency, i.e. there is a hurricane coming and you need to be here. Part of the requirements from the emergency first responders is that this unmute any muted computers. Jason

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
lol.. I knew I should have specified that this is a product requirement from users to avoid all of the worrying people are doing about my app. :-) Jason On Jul 8, 2008, at 7:52 AM, Andreas Mayer wrote: Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]: 2. Bring up an alert and after

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
I also need to determine the user's current mute and volume settings and restore them after my alert plays, which is the other reason that I was looking for something other than AppleScript. Jason On Jul 8, 2008, at 4:02 PM, I. Savant wrote: But that isn't what the OP asked. The OP asks

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
On Jul 8, 2008, at 8:55 AM, Mike Abdullah wrote: On 8 Jul 2008, at 15:45, Steve Weller wrote: On Jul 8, 2008, at 2:28 AM, Mike Abdullah wrote: On 8 Jul 2008, at 07:10, Steve Weller wrote: What I am attempting to do is not working. -valueForKey: does not look for methods with

Re: Working with Paragraphs in Core Text

2008-07-08 Thread Charles Steinman
This would be more appropriate for CoreText-Dev. It doesn't really have anything to do with Cocoa, and that's where most of the CoreText-savvy folks would be looking. http://lists.apple.com/mailman/listinfo/coretext-dev Cheers, Chuck --- On Tue, 7/8/08, Iain Delaney [EMAIL PROTECTED] wrote:

Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds

2008-07-08 Thread Jerry Krinock
I know that you folks have taken a different turn with this discussion, but I need to post my test results to finish what we started a couple days ago, for other readers. RESULTS In Tiger, it behaves as I recall and exactly as Kanny described: The timeout gets rounded up 30 or 60 seconds.

Re: Why aren't my bindings firing?

2008-07-08 Thread Hamish Allan
On Wed, Jul 9, 2008 at 2:43 AM, Scott Anguish [EMAIL PROTECTED] wrote: On Jul 8, 2008, at 11:33 AM, Hamish Allan wrote: Scott, for what it's worth, I really don't agree with you that Cocoa Bindings and KVB are the same thing or that there is no distinction. Ron just said the same thing.

Re: Calculating accurate bounds of stroked paths

2008-07-08 Thread Peter Zegelin
Graham, Since no-one else has replied and I'm going to have to figure out this myself, I thought I'd take a stab at it. I've uploaded some screen shots http://www.fracturedsoftware.com/downloads/Stroke20.tiff and http://www.fracturedsoftware.com/downloads/Stroke30.tiff of a simple poly

Re: Delete action from variety of key presses

2008-07-08 Thread Caleb Strockbine
On Jul 8, 2008, at 3:02 PM, [EMAIL PROTECTED] wrote: Okay, got this message late though it looks like another had responded to it already. Given that I need to override -keyDown: (or - performKeyEquivalent:) in applicable first responders anyway, and it doesn't really read well to have

Re: Why aren't my bindings firing?

2008-07-08 Thread mmalc crawford
On Jul 8, 2008, at 9:39 PM, Hamish Allan wrote: On Wed, Jul 9, 2008 at 2:43 AM, Scott Anguish [EMAIL PROTECTED] wrote: On Jul 8, 2008, at 11:33 AM, Hamish Allan wrote: Scott, for what it's worth, I really don't agree with you that Cocoa Bindings and KVB are the same thing or that there is

Re: Calculating accurate bounds of stroked paths

2008-07-08 Thread Peter Zegelin
Actually Graham I think I got it a bit wrong. I was working by induction and it just happened that the two data points more or less worked. My picture at 45 deg wasn't actually 45 deg (I did it on sight). However I believe the correct value uses the sin. eg sin(11.5deg) = .199, sin(45) =

Re: How to indent in NSOutlineView?

2008-07-08 Thread Aman Alam
I tried the same code earlier. This will indent the text displaying in cell but the disclosure button still at its old place. In normal case, when there is child item in NSOutlineView then the button gets indented. But in my case the button doesn't get indent. The most likely solution, off the

Redrawing CALayer subclass when super layer is scaled

2008-07-08 Thread Rick Mann
I'm trying to use scaling of the superlayer to implement a zoom feature in my CAD app. The various elements in the canvas are drawn by a CALayer subclass I have, which overrides drawInContext:. After the zoom finishes animating, I want CA to call all the sublayer's drawInContext: methods