On Sun, Sep 27, 2009 at 10:51 PM, Oleg Krupnov oleg.krup...@gmail.com wrote:
Or is there a workaround, beside using non-blocking animation, which
is often too tedious and sometimes not smooth enough?
AppKit 10.6 release notes say that the core of the problem is that the
animator proxy would run
Thanks,
AppKit 10.6 release notes say that the core of the problem is that the
animator proxy would run the animation in NSDefaultRunLoopMode. Now
it's done in NSRunLoopCommonModes.
I guess you could run the run loop once in NSDefaultRunLoopMode
whenever you're running in a different
Hi,
I have a custom NSWindow that I wish to place right under the main screen
menubar.
In the (id)initWithContentRect: method I use the [[NSScreen mainScreen]
visibleFrame] to calculate the origin of my new window.
For a 1680x1050 screen resolution, the returned rect is 1676x1028 . When I
set my
On Sun, Sep 27, 2009 at 11:38 PM, Oleg Krupnov oleg.krup...@gmail.com wrote:
Not sure I understand your idea and why it is bad. Could you elaborate?
Because it will cause delayed performs and other default-mode things
to execute when they might not expect to.
Do you mean I should avoid using
Coordinate systems have their origins at the lower left. It seems you
are not taking your window's height into account. NSWindow has the
-setFrameTopLeftPoint: to help you here.
The Cocoa Drawing Guide has more:
Hi!
I have this javascript function in my test.html file which is loaded
in the WebView:
function goToPage(mybox) {
window.location ='#' + mybox.value;
}
It allows me to enter a number, like 24, which then goes to the anchor
tag a name=24. It serves the purpose of navigating a long html
Sorry, this is a typo : my method is actually called
addInvoiceLinesObject:
Le 28 sept. 2009 à 06:03, Kyle Sluder a écrit :
You named the method -addInvoiceLineObject:, but the property is
-invoiceLines? That's not going to work.
Also, NSController is sadly not KVO-compliant for dependent
On 28.9.2009, at 10:09, Philip Juel Borges wrote:
Hi!
I have this javascript function in my test.html file which is loaded
in the WebView:
function goToPage(mybox) {
window.location ='#' + mybox.value;
}
It allows me to enter a number, like 24, which then goes to the
anchor tag a
Hi,
Is it possible to control the background color of NSTokenField tokens ?
Googling this topic didn't returned me any interesting results.
Could anyone give me some urls covering this topic / give me some trails to
follow (subclass NSTokenField cell ?)
Thanks a lot
You want to read up on how event handling in Cocoa works. When you
click, the window is sending events to your overlay view. But if that
view does not handle the event itself, it forwards it on to the next
view below the mouse. So, you need to override the required event
handling methods
Hi,
I want to search for LDAP contacts by using the new OpenDirectory
Framework API but this is not possible because I can't stop a query
immediately. I need to stop it when the user types in a different
search string. So I can setup a new query. To make things worse this
is all
On 28.9.2009, at 11:24, Philip Juel Borges wrote:
You need to execute full statement:
NSString *command = [NSString
stringWithFormat:@goToPage( '%@' );, [sender stringValue]] ;
[theWebView stringByEvaluatingJavaScriptFromString:command] ;
Again, there are no arguments. How could it
I seem to remember having seem some code that checked with a one-liner
whether a file path is an image that could be loaded by NSImage's
initWithContentsOfFile:, before actually going ahead and doing the
initWithContentsOfFile:
Now, I can't remember that one-liner, and I don't see why I
On Sep 28, 2009, at 1:05 AM, bosco fdo wrote:
Date: Mon, 28 Sep 2009 11:57:29 +0800
From: bosco fdo bos1t...@gmail.com
Subject: how do i make SecKeyRef object from NSData of publicKey value
To: cocoa-dev@lists.apple.com
Message-ID:
It seems that my last post hooked up somewhere (sorry for the repost) :
Hi,
Is it possible to control the background color of NSTokenField tokens ?
Googling this topic didn't returned me any interesting results.
Could anyone give me some urls covering this topic / give me some trails to
follow
I am trying to learn about the Core Animation framework.
One thing I am still a bit unclear about is the exact meaning of
explicit transactions.
For instance, assume I've got the following code:
[CATransaction begin];
[CATransaction setValue: [NSNumber numberWithFloat: 2.0f]
On 27 Sep 2009, at 07:50, Graham Cox wrote:
One possibility is to use OpenGL. It has a history buffer mode
(may not be called that - I forget exactly) that stores the previous
image at a diminished brightness and that can be stacked for a
series of frames, giving a fade or trail effect.
I'd like to use Core Animation to create an arbitrary animation, that
is, I have a number of custom-drawn frames that I want to render in a
sequence, with a good frame rate, using the Core Animation timing
engine. How do I do this?
I am looking on CAKeyframeAnimation, which could do the job using
On 28.9.2009, at 13:07, Philip Juel Borges wrote:
The above code should work if you have all connections set up
correctly.
The method is connected to the textfield. So that should be in order.
The simplest way to debug is to just print out what is happening
and check your debug/run
I think NSImageRep's +imageRepClassForFileType: might help.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
On 28.9.2009, at 14:00, Philip Juel Borges wrote:
I have this javascript function in my test.html file which is
loaded in the WebView:
function goToPage(mybox) {
window.location ='#' + mybox.value;
}
BTW the function as written above will not work - the parameter you
are passing
Hi Guys,
Seems to me that CIImageAccumulator would be a possible solution for
this problem. Here's a pointer to the programming guide section for
dynamical systems:
Am 27.09.2009 um 08:50 schrieb Graham Cox:
I have used this approach to simulate an oscilloscope display and it
works well in terms of realism, but performance can be an issue.
You'll probably need to store at least 3 or 4 previous frames to
get the effect you want - there's no really good
On Sep 25, 2009, at 12:19 PM, I. Savant wrote:
Paul:
Unless I'm missing something, why not add properties to your array
controller class that keeps track of the desired types? If you use
multiple tables for the same array controller instance, you could
get even fancier and keep an
Return self from hitTest inside your overlay view.
Jesper
On Sep 27, 2009, at 7:36 PM, PCWiz wrote:
Hi,
I have a transparent black NSView that I layer over my window using
NSView's addSubview method. This works fine, but I want to make it so
that all clicks are captured by the NSView,
Hello,
I'm having some problems with an NSBrowser in my application upon
upgrading to Snow Leopard. The browser is a simple two column setup. I
have setup the delegate as an active delegate to use Apple's
parlance from their developer docs. So I implement
- (void)browser:(NSBrowser
I understand. Apple has changed the semantics of the NSBitmapImageRep
class in a way that is optimal for the majority of users but
effectively deprecates the way that I am using it (as a mutable pixel
store). Periodically generating new NSBitmapImageReps or CGImages from
my mutable pixel
On Mon, 28 Sep 2009 14:16:36 +0300, Oleg Krupnov oleg.krup...@gmail.com
said:
I'd like to use Core Animation to create an arbitrary animation, that
is, I have a number of custom-drawn frames that I want to render in a
sequence, with a good frame rate, using the Core Animation timing
engine. How do
On Sep 27, 2009, at 8:57 PM, bosco fdo wrote:
I need to do RSA encryption for that i need to have SecKeyRef object
for the public Key i have. Do i still need to add to the Keychain and
get from the Keychain as a SecKeyRef ?
Doing crypto with the Security APIs is rather complex and
I'm sure there is something trivial that I am missing,
While the application is running and not doing anything in particular,
I generate the following information about the state of the NSScroller:
Content View Frame: {{1, 1}, {445, 594}}
Content View Bounds: {{0, 0}, {445, 594}}
Scroll
On Sep 27, 2009, at 3:47 PM, Michael A. Crawford wrote:
I believe the demos were called CocoaShuffle and Layer-Backed OpenGL
View. Can these be downloaded somewhere?
I'm fairly certain both are up on developer.apple.com. I'm not certain
they are up under those specific names however.
--
The Spotlight seem to talk exclusively about talk about searching
metadata. But what about the data itself? When I use Spotlight, it
finds references within the content of documents not just their
metadata.
When writing an importer, what metadata field is used to return the
document
Thanks, but that's not exactly what I need. I don't need to animate
canned sprites. I'd like to make a frame-by-frame, stop-motion
animation. I could use a NSAnimation or NSTimer object to drive the
frame motion (call layer's setNeedsDisplay on each timer event), but
I'd like to use
I would post this in the QC forum, but it seems mainly for users or
creators rather than cocoa programmers.
1. Why is there no API for QCPatchController, at least for setting the file
or composition? This makes it utterly useless for anything but a trivial
app.
2. Why is there no way to
On Sep 28, 2009, at 10:00 AM, Oleg Krupnov wrote:
Thanks, but that's not exactly what I need. I don't need to animate
canned sprites. I'd like to make a frame-by-frame, stop-motion
animation. I could use a NSAnimation or NSTimer object to drive the
frame motion (call layer's setNeedsDisplay on
When I run under the debugger, breaking on C++ exceptions, I get an
exception during -[NSString drawWithRect:options:attributes:]. Here's
the backtrace:
#0 0x94d5b259 in __cxa_throw ()
#1 0x91426bfb in SelectStreamType ()
#2 0x914228fa in TTPerformStreamingTypeQuery ()
#3 0x90e3c25a in
On Mon, Sep 28, 2009 at 11:21 AM, James Walker jam...@frameforge3d.com wrote:
The drawing seems to work, I'm just curious, and this hasn't happened before
Snow Leopard.
Because of the unified exception model, code that throws and catches
exceptions as a matter of course will trip up the
On Mon, Sep 28, 2009 at 7:52 AM, John Horigan j...@glyphic.com wrote:
I understand. Apple has changed the semantics of the NSBitmapImageRep class
in a way that is optimal for the majority of users but effectively
deprecates the way that I am using it (as a mutable pixel store).
Periodically
On Sep 28, 2009, at 8:38 PM, Kyle Sluder wrote:
C++ code uses exceptions as a control-flow
mechanism, whereas Cocoa reserves them for programmer error.
That is by no means dictated by C++. In fact, it's quite common to
reserve exceptions for exceptional cases in C++ as well. C++
Kyle Sluder wrote:
On Mon, Sep 28, 2009 at 11:21 AM, James Walker jam...@frameforge3d.com wrote:
The drawing seems to work, I'm just curious, and this hasn't happened before
Snow Leopard.
Because of the unified exception model, code that throws and catches
exceptions as a matter of course
On Mon, Sep 28, 2009 at 11:50 AM, Sander Stoks san...@stoks.nl wrote:
That is by no means dictated by C++. In fact, it's quite common to reserve
exceptions for exceptional cases in C++ as well. C++ exceptions can be
free as long as they aren't thrown, but the cost if they are can be
On Mon, Sep 28, 2009 at 11:52 AM, James Walker jam...@frameforge3d.com wrote:
I thought the unified exception model was only in 64 bit code? I don't see
what that would have to do with it anyway, since I was trying to break on
C++ exceptions, and did get a C++ exception.
Oh, you're not
On Sep 27, 2009, at 8:57 PM, bosco fdo wrote:
I need to do RSA encryption for that i need to have SecKeyRef object
for the public Key i have. Do i still need to add to the Keychain
and get from the Keychain as a SecKeyRef ?
No, it's possible to create a SecKeyRef that isn't in any
Kyle Sluder wrote:
On Mon, Sep 28, 2009 at 11:52 AM, James Walker jam...@frameforge3d.com wrote:
I thought the unified exception model was only in 64 bit code? I don't see
what that would have to do with it anyway, since I was trying to break on
C++ exceptions, and did get a C++ exception.
On Mon, Sep 28, 2009 at 1:26 PM, James Walker jam...@frameforge3d.com wrote:
Because my code base is at least 50% Carbon and I don't have time to do a
huge rewrite with minimal benefit to the user.
Fair enough, it was kind of a tangential point.
Anyway, if it seems to work, then you might as
Snow Leopard added Location Services to the Mac. Current Mac hardware
doesn't include built-in GPS capability, of course, so Location
Services relies on detection of local wi-fi hotspots. In big cities,
that's reportedly pretty good. There aren't any big cities where I
come from, however,
When you call [anArrayController selection] for an Entity-backed
NSArrayController, you always get an instance of
_NSControllerObjectProxy back. Even when there is no object
selected. It's not until you send a message to that proxy that you
get unrecognized selector error.
What is
On Sep 28, 2009, at 1:34 AM, Kyle Sluder wrote:
Done. rdar://problem://7257097
Also notes that the same collision issue exists for user defaults,
where AppKit stores window and splitter autosave information.
It is unlikely that any apple framework is ever going to introduce a
key of the
On Mon, Sep 28, 2009 at 2:28 PM, Timothy Reaves
trea...@silverfieldstech.com wrote:
What is the correct way to determine if that proxy represents an
actual entity?
If you need to determine if there is a selection, you want to use the
selectedObjects property. If you want to bind
On 29/09/2009, at 2:22 AM, David Duncan wrote:
I believe the demos were called CocoaShuffle and Layer-Backed
OpenGL View. Can these be downloaded somewhere?
I'm fairly certain both are up on developer.apple.com. I'm not
certain they are up under those specific names however.
This
I'm having some odd behaviour when saving a particular kind of change
and am having trouble groking was is going on.
I have an entity (A) that has a to-one relationship with another very
simple abstract entity (B), a kind of an enumeration, whose mere type
represents the value. As a kind
On Mon, Sep 28, 2009 at 2:28 PM, Timothy Reaves
trea...@silverfieldstech.com wrote:
What is the correct way to determine if that proxy represents an
actual entity?
If you need to determine if there is a selection, you want to use the
selectedObjects property. If you want to bind
On Mon, Sep 28, 2009 at 6:02 PM, Timothy Reaves
trea...@silverfieldstech.com wrote:
Well, I was hoping to bind buttons enabled property. If I use a
regular NSArray backed controller this works. And you can't bind (at
least I don't know how) with selectedObjects. But you can with
Tried this earlier but it had no effect...
On 2009-09-28, at 7:57 AM, Jesper Storm Bache wrote:
Return self from hitTest inside your overlay view.
Jesper
On Sep 27, 2009, at 7:36 PM, PCWiz wrote:
Hi,
I have a transparent black NSView that I layer over my window using
NSView's addSubview
On Sun, Sep 27, 2009 at 7:36 PM, PCWiz pcwiz.supp...@gmail.com wrote:
I have a transparent black NSView that I layer over my window using NSView's
addSubview method. This works fine, but I want to make it so that all clicks
are captured by the NSView, because right now I can click through to
It seems when I push signatureWithObjCTypes: hard - i.e. submitting
about 250 tasks into NSOperationQueue, signatureWithObjCTypes will
occasionally crash.
By occasionally, I mean about 1 time in 10 to about 1 time in 15 on a
dual core machine:
Thread 68 Crashed: Dispatch queue:
On Mon, 28 Sep 2009 19:37:00 -0600, jon trambl...@mac.com said:
i've got a textfield defined...
but i don't want to draw the text that is in the field right up
against the left boarder of the bounding box of this defined field in
IB,
I want to start the text like 20 pixels to the right of the
On Sep 28, 2009, at 8:17 PM, Andrew Thompson wrote:
Thread 68 Crashed: Dispatch queue: com.apple.root.default-priority
0 com.apple.CoreFoundation 0x7fff85ed8713 +
[NSMethodSignature signatureWithObjCTypes:] + 403
1 librococoa.dylib 0x0001145fa416
Hi,
I have gotten gmail loaded into two WebViews instances. What I would like to
do is to be able to login to different gmail accounts with each WebView
instance. Right now, I log into gmail account A in the first instance,
then login account B in the second instance and when I click reload on the
On Sep 28, 2009, at 18:11, Kyle Sluder wrote:
On Mon, Sep 28, 2009 at 6:02 PM, Timothy Reaves
trea...@silverfieldstech.com wrote:
Well, I was hoping to bind buttons enabled property. If I use a
regular NSArray backed controller this works. And you can't bind (at
least I don't know how)
On Sep 28, 2009, at 17:20, Luke Evans wrote:
I have an entity (A) that has a to-one relationship with another
very simple abstract entity (B), a kind of an enumeration, whose
mere type represents the value. As a kind of enumeration value, the
B entity has a fixed number of concrete
Thanks to everyone for responding. For what it's worth, I am using the
+initialize to register defaults.
I went and upgraded to Snow Leopard and XCode 3.2, and now when I
deploy to my test machine, it works fine, and the +initialize method
gets called.
This is all very baffling. Don't
On Sep 28, 2009, at 1:49 AM, charlie dropbox wrote:
I was looking around for cookie state or some separation of data
sharing between WebViews.
There's a singleton NSHTTPCookieStorage object that you can use to
interact with cookie storage. But the design is such that there is one
single
63 matches
Mail list logo