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
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
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
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
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)
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
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
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
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
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
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
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:
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
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
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
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
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,
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
Hi, here is the code;
[...]
// create the authorization reference...
AuthorizationRef myAuthorizationRef;
OSStatus myStatus;
myStatus = AuthorizationCreate (NULL,
kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults,
myAuthorizationRef);
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
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
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
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
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
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].
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
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
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.
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
On Jul 8, 2008, at 6:20 AM, Glover,David wrote:
myStatus = AuthorizationCopyRights (myAuthorizationRef,
myRights, kAuthorizationEmptyEnvironment, myFlags, NULL);
if ([NSFm removeFileAtPath:
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
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
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
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
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);
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,
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
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
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);
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
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
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
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
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
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
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
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
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
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
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
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
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.
___
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
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:
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
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
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
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
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
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
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
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:
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.
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.
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
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
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
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) =
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
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
85 matches
Mail list logo