Hi All,
I don't want to fall prey to preemptive optimising but I was wondering?
I have a NSMutableArray and I'm sticking actions in it that are then sorted by
NSDate compare:, things I need done at a certain day or time neatly in order.
Up to about 1000 pending actions.
Currently, I check the
On Aug 7, 2011, at 23:09 , Kevin Bracey wrote:
My question is would it be more efficient to sort the array so the next
action becomes the Last object of the array and remove it from the top
instead of the bottom?
Or is this all so efficient it make no real difference.
It's not a question
Is there some notification that is posted or some other way to tell when in a
NSTextView or any editable element that something has been autocorrected?
Thanks.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Sun, Aug 7, 2011 at 11:40 PM, Joshua Garnham
joshua.garn...@yahoo.co.uk wrote:
Is there some notification that is posted or some other way to tell when in a
NSTextView or any editable element that something has been autocorrected?
On Aug 7, 2011, at 10:07 PM, Stephen Blinkhorn wrote:
It's a validation file containing registration details. My product is an
AudioUnit plugin so there's no App Store potential but I'd prefer to keep
things clean just in case.
I don't care where I write the file much (previously I wrote
Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be
world-writable in Lion [which I can't confirm as I haven't switched
yet...come on 10.7.2...].
I can confirm /Users/Shared is world writable on 10.7; besides, it has the
sticky (8) bit set, just like /tmp.
Vincent
Thanks, that's just what I was looking for. I am now able to know exactly when
autocorrect has taken place in the NSTextView in my app. However (if you don't
mind me extending my question), what if I wanted to know when this happens in
any NSTextView in the active app whether it's my app,
I'm looking at using CAOpenGLLayer to boost drawing performance. I'm a total
novice at OpenGL.
Looking at the 'CALayerEssentials' sample code as a starting point, it has the
following code:
-(void)drawInCGLContext:(CGLContextObj)glContext
pixelFormat:(CGLPixelFormatObj)pixelFormat
I received reports of identical Core Data validation errors from two users in
the last week, which I cannot reproduce. It involves these relationships,
which are inverses of one another:
Bar Foo
foo bars
In both directions, the Delete Rule is Nullify, and for the to-many
You're right – the vertices are here specified in OpenGL clip space – a
coordinate system stretching from -1 to 1 on all 3 axes. If you want to
specify points in a different coordinate space, it's your responsibility to
make sure that they end up in clip space, by transforming them
On 7 Aug 2011, at 21:30, Kyle Sluder wrote:
On Sun, Aug 7, 2011 at 1:05 PM, julius jul...@juliuspaintings.co.uk wrote:
It is not a problem with the layers.
I get exactly the same behaviour if I leave out all the layer stuff and
instead code the following in the view
Meaning, you still
On Aug 7, 2011, at 1:47 PM, Mikkel Islay wrote:
Thanks for sharing with the list.
... Aren't you in effect throwing away the benefits of asynchronous loading?
No. Asynchronous routines can be implemented above a blocking interface.
Blocking and asynchronous interfaces work well together, and
On 8 Aug 2011, at 01:46, Graham Cox wrote:
On 08/08/2011, at 5:52 AM, julius wrote:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
I didn't notice first time through that this is where your code resides
(sometimes the most obvious errors pass by when you're
Thanks Thomas, I'll check it out.
--Graham
On 08/08/2011, at 6:24 PM, Thomas Davie wrote:
You're right – the vertices are here specified in OpenGL clip space – a
coordinate system stretching from -1 to 1 on all 3 axes. If you want to
specify points in a different coordinate space, it's
OK, I downloaded the project (tip: always get rid of the build folder before
posting a project - it makes the difference between a 5 MB download and one
that's only a few K, which on your server, added up to many minutes).
Result - it works completely correctly and normally. The view resizes
Nick,
I was in fact using existing databases - actually the update I'm working on has
a migration involved in it too. I didn't mention it originally as I'd ruled it
out as the cause, but that actually helped fix the problem. Since I was already
migrating the data (with custom entity migration
On 8 Aug 2011, at 11:23, Graham Cox wrote:
OK, I downloaded the project (tip: always get rid of the build folder before
posting a project - it makes the difference between a 5 MB download and one
that's only a few K, which on your server, added up to many minutes).
Sorry about that.
Have
On 8 Aug 2011, at 08:13, vincent habchi wrote:
Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be
world-writable in Lion [which I can't confirm as I haven't switched
yet...come on 10.7.2...].
I can confirm /Users/Shared is world writable on 10.7; besides, it has
I forgot to say that this is on Mac. One error report came from Snow Leopard
and the other from Lion. Store is
SQLite.___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
On 08/08/2011, at 9:35 PM, julius wrote:
When I go and drag the resize handle to make the window as small as I can
make it, i.e. so the window's content rect has zero height then the view
misbehaves, i.e. the top of the view shifts from being some 100 pixels below
the title bar to being 0
On 08/08/2011, at 10:42 PM, julius wrote:
The reason this happens is that once either the width or height goes to 0,
there's nothing for the view sizing code to mutliply by to end up with the
destination size - once you hit a zero, the sizing information is lost. To
prevent this, set a
On 8 Aug 2011, at 14:00, Graham Cox wrote:
Doing it this way should make your layer immune from the zero size problem.
Thanks. That's really helpful.
Amazon's just mailed to say the Core Animation book should be with me in a few
days.
From what I've seen and tried so far this layered and
On Aug 8, 2011, at 4:54 AM, Chris Ridd chrisr...@mac.com wrote:
Does OS X really support the sticky bit? Lion's sys/stat.h suggests no,
though this line could be read a couple of ways:
Yep, it's supported and used on directories. Don't think it's supported on
files, though.
--Kyle
I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping, shadow,
gradient, …).
Le 8 août 2011 à 02:22, Andre Masse a écrit :
Interesting. Not sure if could be possible to convert the text to an image,
apply a
On 08/08/2011, at 12:16, Jean-Daniel Dupas wrote:
I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping, shadow,
gradient, …).
Ah, then that's the way to go! Thanks Jean-Daniel.
The image I created used as
On Sun, 7 Aug 2011 07:39:25 +0200, Martin Hewitson said:
Is there a know problem or limitation in naming relationships? I haven't
come across this anywhere before.
Well, you should not name properties with the same name as an NSObject or
NSMangedObject method name. ex: don't create a property
On Sun, 7 Aug 2011 15:41:01 -0500, Fritz Anderson said:
I have an NSPersistentDocument, with autosave-in-place enabled. When I
try to save the document after editing it, it balks with both
application-modal alerts and document-modal sheets, all with generic
messages about being unable to create
Ah, I did not foresee this.
I really can't generally recommend calling -saveToURL:::error: instead of
saveToURL:::completionHandler: because the latter does some important things
that the former doesn't. Unfortunately, I think the problem you're seeing with
the hang is insurmountable without
On Mon, 8 Aug 2011 01:04:07 -0600, Eli Bach said:
It's a validation file containing registration details. My product is
an AudioUnit plugin so there's no App Store potential but I'd prefer to
keep things clean just in case.
I don't care where I write the file much (previously I wrote it to /
On 8 Aug 2011, at 11:28 AM, Sean McBride wrote:
Sandboxing, IMNSHO, is still half-baked. Note that on Lion, only TextEdit
and Preview have it enabled. That should tell you something. I tried with
my app, and hit bug after bug. In addition to limitation after limitation.
Ah. Given that
On Mon, 8 Aug 2011 01:12:36 -0700, Jerry Krinock said:
The reports indicate (rather strangely, but I'm watching my word count
here) that the problem is Dangling reference to an invalid object.
Searching list archives tells me that this has been due to setting a
relationship in -awakeFromFetch,
On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote:
I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping, shadow,
gradient, …).
CTFrameGetPath() returns the path used to create the frame, typically a
Been thinking about archiving NSObjects to/from JSON, using an API similar to
NSCoding. I haven’t found any prior art, but I thought I’d ask here.
I am not talking about serializing JSON to/from collection objects a la
TouchJSON, JSONKit, etc.; rather, something that lets you convert your
Thanks for the explanation, Jens too.
The hint that NSXMLParser has that behaviour is that it accepts an
NSInputStream, or that it relies on a delegate for communicating parse-events?
Mikkel
On 8 Aug 2011, at 10:34, Andreas Grosam wrote:
No. Asynchronous routines can be implemented above a
The hint is that the NSXMLParser docs say:
Parameters
stream
The input stream. The content is incrementally loaded from the specified stream
and parsed.
if (*ra4 != 0xffc78948) { return false; }
On 8 Aug 2011, at 17:59, Mikkel Islay wrote:
Thanks for the explanation, Jens too.
The hint that
On 8 Aug 2011, at 19:04, Thomas Davie wrote:
Parameters
stream
The input stream. The content is incrementally loaded from the specified
stream and parsed.
No, that states something about the way NSXMLParser is able to parse from a
stream. It doesn't say anything about its state with
On 8 Aug 2011, at 18:16, Mikkel Islay wrote:
On 8 Aug 2011, at 19:04, Thomas Davie wrote:
Parameters
stream
The input stream. The content is incrementally loaded from the specified
stream and parsed.
No, that states something about the way NSXMLParser is able to parse from a
stream.
Le 8 août 2011 à 18:50, David Duncan a écrit :
On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote:
I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping, shadow,
gradient, …).
CTFrameGetPath() returns
On Aug 8, 2011, at 10:21 AM, Jean-Daniel Dupas wrote:
Le 8 août 2011 à 18:50, David Duncan a écrit :
On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote:
I think you can create a CGPath from some text using CTFrameGetPath().
Once you get the path, you can do whatever you want (clipping,
On Aug 8, 2011, at 10:16 AM, Mikkel Islay wrote:
No, that states something about the way NSXMLParser is able to parse from a
stream. It doesn't say anything about its state with respect to the main
thread.
It’s clearly a SAX parser. SAX parsers are incremental, that’s their whole
point,
On 8 Aug 2011, at 10:36, Sean McBride wrote:
On Mon, 8 Aug 2011 01:04:07 -0600, Eli Bach said:
It's a validation file containing registration details. My product
is
an AudioUnit plugin so there's no App Store potential but I'd
prefer to
keep things clean just in case.
I don't care
On Mon, Aug 8, 2011 at 11:13 AM, Stephen Blinkhorn
step...@audiospillage.com wrote:
I'm afraid your fears have just been confirmed, until I find a better
solution at least. Maybe I can justify this as a kind of protest against
AudioUnits not being allowed in the App Store :-)
Well, writing to
But doesn't it seem entirely reasonable that apps signed by the same vendor
(for example) be able to share files? I mean in a safe location perhaps with a
limited quota of space?
Cookies and client side storage in HTML 5 allow this (not exactly the same but
still), but native apps have no
You might want to look at Bill Kunz's Objectify and maybe discuss with the
author.
http://tigerbears.com/objectify/
--Andy
On Aug 8, 2011, at 12:56 PM, Jens Alfke wrote:
Been thinking about archiving NSObjects to/from JSON, using an API similar to
NSCoding. I haven’t found any prior art,
On Aug 8, 2011, at 11:39 , Stephen Blinkhorn wrote:
OK, well /Library/Application Support/CompanyName/ is out I believe as you're
not supposed to store user data in there.
IIRC, the data you're talking about is registration information, which is *not*
what (I think) is meant by user data. In
On Aug 8, 2011, at 11:39 AM, Stephen Blinkhorn wrote:
OK, well /Library/Application Support/CompanyName/ is out I believe as you're
not supposed to store user data in there. Which leaves the keychain as the
only option I can think of right now.
Keychains are per-user, apart from the system
I need to know when text is entered (or anything relating to a delegate method
happens) in any NSTextView in the active app whether it's my app, TextEdit or
Safari. Similar to this app here (http://pilotmoon.com/popclip/).
I'm not sure how exactly to go about this and the only thing I have
On Aug 8, 2011, at 06:24 PM, Sean McBride wrote:
On Sun, 7 Aug 2011 07:39:25 +0200, Martin Hewitson said:
Is there a know problem or limitation in naming relationships? I haven't
come across this anywhere before.
Well, you should not name properties with the same name as an NSObject or
On 2011 Aug 08, at 09:43, Sean McBride wrote:
Despite knowing that well (after learning it the hard way long ago), I found
another place where I do so. But not in a direct way! A controller object
is using KVO to observe many things. Sometimes in response to these changes,
it ends of
On 8 Aug 2011, at 12:56, Quincey Morris wrote:
On Aug 8, 2011, at 11:39 , Stephen Blinkhorn wrote:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration information,
On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration information,
which is *not* what (I think) is meant by user
On Fri, 5 Aug 2011 15:11:25 -0400, Marc Respass said:
With Xcode 4, I can drag from a control to the header and Xcode will
create an outlet and a property. I noticed that Xcode creates a property
like this
@property (strong) IBOutlet NSTextField *someField;
But I have other code where it is
According to the AppKit release notes:
Note that Xcode 4.2 defaults to ARC when creating new projects, and in the
WWDC seed release, as well as in the latest version available at the time 10.7
ships, generates outlet declarations that are strong. This is true for outlets
generated in new
Seems like a lot of work for a simple effect. I may play again with this later
on this project. I have save this thread in Mail which is telling me that
there's 20 messages selected using its fancy font effect :-)
Thanks for all infos guys,
Andre Masse
On 08/08/2011, at 13:29 , David Duncan
On 8 Aug 2011, at 14:56, Sean McBride wrote:
On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration information,
On Mon, 8 Aug 2011 16:13:50 -0600, Stephen Blinkhorn said:
To be clear, you'd need to use ~/Library/App Support not the one in /
Library.
OK, no problem in Cocoa with the stringByExpandingTildeInPath: method
of NSString. More problematic for CFStringRef though. Is there an
acknowledged way of
Andre,
I was digging through some old code and found this method I wrote awhile ago.
I remember basing this off of a blog post or email thread but I don't remember
the original source. I used this for something real quick so the code is not
perfect but may be a good starting point to get
On Mon, Aug 8, 2011 at 5:23 AM, Graham Cox graham@bigpond.com wrote:
On 08/08/2011, at 9:35 PM, julius wrote:
When I go and drag the resize handle to make the window as small as I can
make it, i.e. so the window's content rect has zero height then the view
misbehaves, i.e. the top of
On Mon, Aug 8, 2011 at 4:37 PM, Ken Ferry kenfe...@gmail.com wrote:
See also Cocoa Auto Layout, which addresses this issue among others. (Have
people caught this? I'm a little surprised there hasn't been more chatter.
We're replacing the autoresizing mask entirely.)
I would imagine it will
Yes the error is coming apparently when it tries to move a file which needs an
administrator password. Thing is a panel is presented asking for permission
and even if you just cancel it this error doesn't appear. And this is not
something new meaning this project has been ran on many machines
Does NSBezierPath do decimation as well as interpolation? I didn't find it in
the Class Reference.
Or is there another class that does it?
Or must I do the decimation before plotting the data with NSBezierPath?
Decimation reduces the original sampling rate for a sequence to a lower rate,
the
On Tue, 9 Aug 2011 08:14:15 +0800, Rick C. said:
Yes the error is coming apparently when it tries to move a file which
needs an administrator password. Thing is a panel is presented asking
for permission and even if you just cancel it this error doesn't
appear. And this is not something new
The docs say NSPrinter deviceDescription dictionary is only guaranteed to have
the key NSDeviceIsPrinter.
This being the case what is best method for finding the points per inch of a
selected printer?
-koko
___
Cocoa-dev mailing list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 8/8/11 5:16 PM, N!K wrote:
Does NSBezierPath do decimation as well as interpolation? I didn't
find it in the Class Reference. Or is there another class that does
it? Or must I do the decimation before plotting the data with
NSBezierPath?
On 8 Aug 2011, at 5:16 PM, N!K wrote:
Does NSBezierPath do decimation as well as interpolation? I didn't find it in
the Class Reference.
Or is there another class that does it?
Or must I do the decimation before plotting the data with NSBezierPath?
No, NSBezierPath doesn't do any kind of
Does NSBezierPath do decimation as well as interpolation? I didn't find it in
the Class Reference.
It does whatever it needs to do in order to achieve great results, where
great is in practical terms something like an order of magnitude finer than
pixel resolution.
Last I checked, it did
On 09/08/2011, at 10:32 AM, Conrad Shultz wrote:
Throwing 25,000 points at NSBezierPath might swamp
it, or at least run very slowly.
The obligatory question: is this conjecture or have you found this to be
the case?
I have some code that plots about 7500 points in a scalable,
On 8 Aug 2011, at 16:42, Sean McBride wrote:
On Mon, 8 Aug 2011 16:13:50 -0600, Stephen Blinkhorn said:
To be clear, you'd need to use ~/Library/App Support not the one
in /
Library.
OK, no problem in Cocoa with the stringByExpandingTildeInPath: method
of NSString. More problematic for
I have a very wide NSView set as a document of an NSScrollView. When I
am zoomed in (by setting the cliprect bounds rectangle) swiping left and
right on my magic mouse scroll the expected amount.
But when zoomed out (when the bounds rect is nearly the same size of the
frame rect) left/right
Dear list,
I was wondering if anyone knows a way to get the animated collapsing/expanding
of outline view rows programatically. Currently I'm using -collapseItem: and
-expandItem: but the visual result doesn't have the animation that you get when
clicking on the disclosure triangle. I'm trying
Thank you all for your prompt and appropriate answers.
NSBezier doesn't decimate although it does interpolate.
Lots and lots of points go slowly.
I could not believe that this is a new problem; it had to be recognizable and
previously dealt with.
When a number of points occupy one pixel,
Hello,
After allot of writing test-cases, and googling for others'
experiences, i found that the most easy and straightforward way of
achieving what i want, is to simply subcass UIWebView and override
UIViews' - hitTest:withEvent method.
However, as everyone emphasize everywhere i look, the docs
On 09/08/2011, at 3:42 PM, N!K wrote:
I could not believe that this is a new problem; it had to be recognizable and
previously dealt with.
When a number of points occupy one pixel, something has to be done with them.
With the old fashioned CRT, the points would bloom from repeated
73 matches
Mail list logo