Sorry for dragging out this thread,
so I would turn off the animations by updating the frame and position
within
[CATransaction begin];
[CATransaction setValue:
(id)kCFBooleanTrueforKey:kCATransactionDisableActions];
// my layer update code here
[CATransaction commit];
Yes Apple did so. CIAffineTransform.
Raphael
On Thu, Oct 9, 2008 at 5:09 AM, M Pulis [EMAIL PROTECTED] wrote:
Anyone developed a mirror Image Unit?
Just the kernel code and ROI would be enough. Would rather not re-invent
what seems to be a wheel someone may already have written (like Picture
NSNumberFormatter returns negative numbers for unsigned long long n such
that (LLONG_MAX + 1) = n = ULLONG_MAX. Am I doing something incorrect, or
should I report this as a bug?
- (void)awakeFromNib
{
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter
My apologies for being a bit dense, not asking for details and
apparently late to the party, but I have looked at CIAffineTransform
(filters, etc) for hours and can not make sense of it in making a
flip. IB settings can not flip.I have used core image fun house and
can not flip the image.
On Thu, Oct 9, 2008 at 2:47 AM, M Pulis [EMAIL PROTECTED] wrote:
My apologies for being a bit dense, not asking for details and apparently
late to the party, but I have looked at CIAffineTransform (filters, etc)
for hours and can not make sense of it in making a flip. IB settings can not
On 8 Oct 2008, at 19:49, Randall Meadows [EMAIL PROTECTED] wrote:
On Oct 8, 2008, at 10:24 AM, David wrote:
Hello,
I'd like to have a button that looks like the close or cancel icon
that is often present in Cocoa applications, but I can't find the
icon. I'm surprised it doesn't show up as a
OK, I can see one of my problems IB and FH (funhouse) do not
allow -1 nor differentiate between X and Y scale factors. Hoping just
some simple settings would do.
Digging deeper before I ask for more.
Thanks
Gary
On Oct 9, 2008, at 1:13 AM, Stephen J. Butler wrote:
On Thu, Oct 9,
Hi Ben,
yes, there are some sporadic problems left in save: but these are
exception I can handle. The NSUndoManager crashes were totally beyond
my control, so this is going to help a lot.
Thanks
Ruotger
Am 08.10.2008 um 22:23 schrieb Ben Trumbull:
Ruotger,
This has less to do
Hi Ron,
I wasn't clear enough on one point. The main thread context's undo
manager crashes (the posted backtrace), but changing the DB only
happens in the background thread. Assuming no binding changes the main
thread context, there shouldn't be anything to undo in the main thread
On 9 Oct 2008, at 8:50 pm, Jean-Daniel Dupas wrote:
It does not differenciate bewteen X and Y, but it allows -1. Just
use the text field to enter the value instead of using the slider.
Le 9 oct. 08 à 10:36, M Pulis a écrit :
OK, I can see one of my problems IB and FH (funhouse) do not
Hi,
Since Ron asked, let's move this to an own thread (no pun intended):
Am 08.10.2008 um 18:23 schrieb Ron Lue-Sang:
Hi,
I have a core data database with two contexts attached to it. One
read-only for the main thread and bindings, one read/write for a
background thread that takes data
It does not differenciate bewteen X and Y, but it allows -1. Just use
the text field to enter the value instead of using the slider.
Le 9 oct. 08 à 10:36, M Pulis a écrit :
OK, I can see one of my problems IB and FH (funhouse) do not
allow -1 nor differentiate between X and Y scale
IB under the Media Tab
Cheers
Kevin
___
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
Help/Unsubscribe/Update
Am Do,09.10.2008 um 02:46 schrieb Tim Isted:
Did you setup the bindings using Interface Builder or
programatically? If programatically, they work in only one direction
so you need to call
[object1 bind:@value toObject:object2
withKeyPath:@whateverPathForKeyIs options:nil]; and
Am Do,09.10.2008 um 07:26 schrieb Ron Green:
Somehow in my education I missed out on delegates and callbacks. Can
someone point me to a really good explanation that even a dummy like
me can understand?
hi,
I have a trouble to catch and manage tablet event.
For exactly I want to receive tablet event and mange it, but I don't
want use or show window.
In other word I have a main window that I use for main program, and in
a secondary thread I have
all source to receive and manage tablet event
I want a Pull Down PopupButton in my toolbar. I've added a one in IB
and as long as the type is set as Pop Up (not a Pull Down) all is
well. When I change it to Pull Down I see repeated errors in the
console:
TestApp(85454,0xb0103000) malloc: free_garbage: garbage ptr =
0x12df4c0, has
Ben,
Thanks for your consummate help.
On 8/10/08, Ben Trumbull wrote:
Okay, that should work, although due to table level locking
SQLite really only handles a small work group, or a scenario
that is primarily readers.
On busy weekends we only have three machines operating - we
leave the
Sorry, my bad for writing confusion and rubbish at 1:40am.
I meant to talk about discussion as here:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/27/137132
but see also the next messages
Tim
On 9 Oct 2008, at 06:36, Scott Anguish wrote:
On 8-Oct-08, at 8:46 PM, Tim Isted wrote:
Hi,
I would like to do a smooth transition when entering full screen mode
using enterFullScreenMode:withOptions:. In a early beta version of
Leopar there were keys for providing animations. But they were dropped
later.
The Apple document Animation Overview states:
The NSView class
On Oct 8, 2008, at 11:44 PM, Luis Rojas wrote:
I am trying to make a tool that uses cocoa classes but i am stuck in
one
basic point. How do i read text on the terminal? and where can i
find more
information if i want to make cocoa applications that is main
interface is
the terminal.
On 09-Oct-08, at 2:52 AM, Mike Abdullah wrote:
On 8 Oct 2008, at 20:48, chaitanya pandit wrote:
Hi,
I have implemented Save As... in one of my core data app.
What i do is, in the saveToURL: ofType: forSaveOperation:
error: method, if the save operation is NSSaveAsOperation, i
migrate
That looks bad, and it looks like you have enough information to be
worth filing a bug.
I just filed it. Bug ID# 6280722
What version of OSX are you on ?
10.5.5, tried on PPC and Intel with same results.
Two other things you can do are
(a) run pragma integrity_check on the db file,
On Oct 9, 2008, at 2:10 AM, Gerriet M. Denkmann wrote:
Is there somewhere a list (human readable or programmatically
accessable) of names understood by +[ NSImage imageNamed:]?
The documentation says: Search the Application Kit framework for a
shared image with the specified name.
Where
I'm wondering if anyone has seen this behavior before.
I have a NSDrawer, which in IB has its parent window set to my
document's main window, and the content view set appropriately. I
can open and close the drawer fine, and also resize its width by
dragging the drawer's border.
But,
Hi Ken, thanks a lot for the long explanation. I'm quite happy with
the optimization I'm doing, a mix of drawing (as you suggested) and
pixel access. I just realized than with the CGBitmapContextCreate I
can pass the reference to the pixels which can be updated later, this
should be VERY handy.
On Oct 8, 2008, at 11:09 PM, Colin Doncaster wrote:
so I would turn off the animations by updating the frame and
position within
[CATransaction begin];
[CATransaction setValue:
(id)kCFBooleanTrueforKey:kCATransactionDisableActions];
[CATransaction commit];
or is there another more correct
On Oct 9, 2008, at 8:20 AM, Mark Roseman wrote:
I'm wondering if anyone has seen this behavior before.
I have a NSDrawer, which in IB has its parent window set to my
document's main window, and the content view set appropriately. I
can open and close the drawer fine, and also resize its
Hi everyone,
I'm trying to access metadata from audio files (m4a files encoded
using aac in iTunes) using the Quicktime QTMetaDataRef class. So, to
do this I first need to get a QTMovie instance, hence I'm calling this
bit of code:
NSLog(@processing %@, fullpath);
if([QTMovie
Hi there!
In my application I have a CATextLayer (timeLayer) in a CALayer
(clockLayer). If I apply a shadow to my timeLayer and then animate
clockLayer using a CATransform3D, it animates VERY slowly.
I figured I would solve this problem by creating a snapshot image of
the
timeLayer, setting a
I want to make a drawer that the user cannot close or slide. Since you can't
stop the user from sliding the drawer at least partially closed, I was
advised to use a child window instead. The problem is that I want the child
window to *act* like a drawer, and in particular it should be capable of
On Thu, Oct 9, 2008 at 12:24 PM, Daniel Thorpe [EMAIL PROTECTED] wrote:
Hi everyone,
I'm trying to access metadata from audio files (m4a files encoded using aac
in iTunes) using the Quicktime QTMetaDataRef class. So, to do this I first
need to get a QTMovie instance, hence I'm calling this
Hi,
the best way to address this kind of thing is by drawing the shadow
into the layer bitmap. You can do that by subclassing CATextLayer and
adding a drawInContext: method something like:
- (void)drawInContext:(CGContextRef)ctx
{
CGContextSetShadow (ctx, CGSizeMake (0, -4), 2);
On Thu, Oct 9, 2008 at 1:17 PM, Matt Neuburg [EMAIL PROTECTED] wrote:
I want to make a drawer that the user cannot close or slide. Since you can't
stop the user from sliding the drawer at least partially closed, I was
advised to use a child window instead. The problem is that I want the child
On 10/9/08 10:10 AM, Gerriet M. Denkmann said:
Is there somewhere a list (human readable or programmatically
accessable) of names understood by +[ NSImage imageNamed:]?
See also NSImage.h
--
Sean McBride, B. Eng [EMAIL
On 10/9/08 3:41 PM, Stefan Hafeneger said:
I would like to do a smooth transition when entering full screen mode
using enterFullScreenMode:withOptions:. In a early beta version of
Leopar there were keys for providing animations. But they were dropped
later.
Correct. And last I checked the docs
Hi All,
I have a Cocoa Core Data Document based application. When files
created with this application are opened via the Finder (or double
clicked), the Finder crashes and restarts every time. Opening files
from within the application work fine, using Open With works fine.
The Finder
Hello,
My program UI depends on what measurement units are used.
How can I get notification when AppleMeasurementUnits have been
changed by Preferences application?
Best regards, Alexander.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Hi everybody,
According to the documentation, [NSApp stop:] will break the flow of control
out of the [NSApp run] method. While this is true, [NSApp run] doesn't notice
that [NSApp stop:] was called until some other event comes along. So I call
[NSApp stop:], nothing happens, and when I then
Hi!
I am reposting this as I mistakenly sent it to objc-language...oops.
Documentation for ABAddressBook exposes a new method for 10.5:
[ABAddressBook addressBook].(ABAddressBook Class Reference)
Doc says that it Returns a new instance of ABAddressBook.
As I am in need of using a private
Hello Brian,
I hope that you've filed a formal bug report? If not, that should be
your first priority in a case like this:
http://developer.apple.com/bugreporter/
Thanks,
j o a r
On Oct 9, 2008, at 10:47 AM, Brian Miller wrote:
I have a Cocoa Core Data Document based
On or about 10/9/08 10:33 AM, thus spake Kyle Sluder
[EMAIL PROTECTED]:
On Thu, Oct 9, 2008 at 1:17 PM, Matt Neuburg [EMAIL PROTECTED] wrote:
I want to make a drawer that the user cannot close or slide. Since you can't
stop the user from sliding the drawer at least partially closed, I was
On Oct 9, 2008, at 09:15 , Michiel de Hoon wrote:
Hi everybody,
According to the documentation, [NSApp stop:] will break the flow of
control out of the [NSApp run] method. While this is true, [NSApp
run] doesn't notice that [NSApp stop:] was called until some other
event comes along.
NSUserDefaultsDidChangeNotification
On 09-Oct-08, at 5:51 PM, Alexander Shmelev wrote:
Hello,
My program UI depends on what measurement units are used.
How can I get notification when AppleMeasurementUnits have been
changed by Preferences application?
Best regards, Alexander.
Has anyone been able to get NSDraggingSource's -
(void)draggedImage:begatAt: method to work?
When I implemented it, it didn't fire. Does anyone have any ideas how
to trigger that method?
TIA!
Live Playfully,
Sam
___
Cocoa-dev mailing list
On 9 Oct 2008, at 2:04 PM, Sam Krishna wrote:
Has anyone been able to get NSDraggingSource's -
(void)draggedImage:begatAt: method to work?
When I implemented it, it didn't fire. Does anyone have any ideas
how to trigger that method?
Really dumb question: You're spelling it beganAt:, and
On Oct 9, 2008, at 7:10 AM, Steve Steinitz wrote:
If this would be particularly useful, you should file an ER.
Based on my small knowledge of the problem, it seems it might be
worth an ER.
I invite you to have your way with bugreport.apple.com. Despite it's
name it also does
On Oct 9, 2008, at 1:40 PM, Ben Trumbull wrote:
That said, the addition of setRelationshipKeyPathsForPrefetching
seemed to help even the SMB setup.
Not surprising. More fetching will reduce the window of opportunity
for caching problems. I'm guessing you are mostly impacted by the
I'm having trouble with a subclass of NSView.
In the code below, the variable str is an NSString set to a constant
string when the view is initialised. During initialisation the NSPoint
variable click is set to 0,0.
When the view first displays, str is drawn correctly in the lower-left
Are you retaining str when the view is initialized?
--Andy
On Oct 9, 2008, at 4:17 PM, DKJ wrote:
I'm having trouble with a subclass of NSView.
In the code below, the variable str is an NSString set to a constant
string when the view is initialised. During initialisation the
NSPoint
I have a TextField which supports attributed text. I'm using HTML to
populate the field.
The problem is that depending on which userid I run the application
in, the size of the text is different. How can that be? Is there some
Safari setting or preference that can be affecting it?
I have a need to find a bundle¹s path so that I can get information about
the bundle but the only input that I have is the bundle ID.
Is there some efficient mechanism that I can use to achieve this?
Right now the only thing that I can think of is to search through all the
likely paths for apps
Yep, just use:
- (NSString *)absolutePathForAppBundleWithIdentifier:(NSString
*)bundleIdentifier
That is part of NSWorkspace and is used like:
NSString * pathForiChat = [[NSWorkspace sharedWorkspace]
absolutePathForAppBundleWithIdentifier:@com.apple.iChat];
HTH,
Dave
On Oct 9, 2008,
On Oct. 9, 2008, at 10:17:23 -0700, Matt Neuburg [EMAIL PROTECTED]
wrote:
I want to make a drawer that the user cannot close or slide. Since
you can't
stop the user from sliding the drawer at least partially closed, I was
advised to use a child window instead.
Do you care if the user
On Oct 9, 2008, at 12:54 PM, Nick Zitzmann wrote:
On Oct 9, 2008, at 1:40 PM, Ben Trumbull wrote:
That said, the addition of setRelationshipKeyPathsForPrefetching
seemed to help even the SMB setup.
Not surprising. More fetching will reduce the window of
opportunity for caching
btw.: I'd like to propose that there should be a way to switch a
context to read-only. I'd file a radar if you want me to.
File early, file often. Even if you already know another developer
has, even if you came up with a work around. If a problem is annoying
you, it's very helpful for us
On Oct 9, 2008, at 2:47 PM, Ben Trumbull wrote:
-refreshObject works on that single object (the receiver), not its
related objects.
But I want the latest information on the receiver's related records,
not the latest information on the related objects, which can be
refreshed later if
On Oct 9, 2008, at 1:57 PM, Nick Zitzmann wrote:
On Oct 9, 2008, at 2:47 PM, Ben Trumbull wrote:
-refreshObject works on that single object (the receiver), not its
related objects.
But I want the latest information on the receiver's related records,
not the latest information on the
On 9 Oct, 2008, at 13:27, Andy Lee wrote:
Are you retaining str when the view is initialized?
No, since it was set as:
str = @x;
But your question made the penny drop: it was dict that needed
retaining. All works well now.
dkj
___
Ah, I see you did mention it was a constant string. Anyway, glad you
found the problem.
--Andy
On Oct 9, 2008, at 5:30 PM, DKJ wrote:
On 9 Oct, 2008, at 13:27, Andy Lee wrote:
Are you retaining str when the view is initialized?
No, since it was set as:
str = @x;
But your
On Oct 9, 2008, at 2:30 PM, DKJ wrote:
On 9 Oct, 2008, at 13:27, Andy Lee wrote:
Are you retaining str when the view is initialized?
No, since it was set as:
str = @x;
But your question made the penny drop: it was dict that needed
retaining. All works well now.
You should still
On 10 Oct 2008, at 7:17 am, DKJ wrote:
- (void)mouseDown:(NSEvent *)ev {
click = [self convertPoint:[ev locationInWindow] fromView:nil];
[self display];
}
Don't call [self display]. Instead, call [self setNeedsDisplay:YES];
While the above will work, it's not the
Hi all,
What's a good strategy for setting up a support folder in ~/
Application Support/?
I'm thinking of using my main bundle's identifier or the application
name to name the top-level folder, then maybe have a few subfolders
within there for specific types of files (such as document
On Oct 9, 2008, at 5:21 PM, Graham Cox wrote:
I'm thinking of using my main bundle's identifier or the application
name to name the top-level folder, then maybe have a few subfolders
within there for specific types of files (such as document
templates). Is that a good idea? What do others
On Oct 9, 2008, at 5:30 PM, j o a r wrote:
I'm thinking of using my main bundle's identifier or the
application name to name the top-level folder, then maybe have a
few subfolders within there for specific types of files (such as
document templates). Is that a good idea? What do others do?
On 10 Oct 2008, at 11:21 am, Graham Cox wrote:
a support folder in ~/Application Support/?
I meant ~/Library/Application Support/ of course.
G.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
--- On Thu, 10/9/08, Jason Coco [EMAIL PROTECTED] wrote:
Submit a bug report and use a CFRunLoop for now :)
In my understanding, CFRunLoop cannot replace [NSApp run] for GUI applications.
For example, see this thread:
http://lists.apple.com/archives/Cocoa-dev/2008/Mar/msg01372.html
So I
On Thu, Oct 9, 2008 at 9:15 AM, Michiel de Hoon [EMAIL PROTECTED] wrote:
Hi everybody,
According to the documentation, [NSApp stop:] will break the flow of control
out of the [NSApp run] method. While this is true, [NSApp run] doesn't
notice that [NSApp stop:] was called until some other
I thought I recalled seeing something to the effect that an easy way
to add QL support was to package a document file and add a Quick
Look folder to it containing a static preview image file. I'm having
trouble getting that to work and can't find documentation relating
specifically to this
On Oct 9, 2008, at 7:14 PM, Graham Cox wrote:
I thought I recalled seeing something to the effect that an easy way
to add QL support was to package a document file and add a Quick
Look folder to it containing a static preview image file. I'm
having trouble getting that to work and can't
I'm working on a Document Based app
My app has in its MainMenu.xib a controller that monitors a usb
devices. I want this controller to send actions to the front most
document. I tried many thing in the archives, including
1) in my controller in the MainMenu.xib
[[NSApplication
On 10 Oct 2008, at 1:22 pm, Adam R. Maxwell wrote:
From http://developer.apple.com/documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/QLImplementationOverview/chapter_5_section_3.html
:
If you want to specify static thumbnail and preview images for a
bundled document, you
On Thu, Oct 9, 2008 at 10:24 PM, Louis Demers [EMAIL PROTECTED] wrote:
[[NSApplication sharedApplication] sendAction:@selector(usbEvent:)
to:(id)nil from:nil]; // From nil because this is just a c procedure
Don't do this. It's using the responder chain; what if your
document's window isn't
Hi!
Due to strict requirements I am unfortunately unable to discuss openly, I am
forced to implement low-level transport to an HTTP server. The app
originally uses NSURLConnection, e.g.
reply = [NSURLConnection sendSynchronousRequest: req
returningResponse:
On Oct 9, 2008, at 20:47 , Michiel de Hoon wrote:
--- On Thu, 10/9/08, Jason Coco [EMAIL PROTECTED] wrote:
Submit a bug report and use a CFRunLoop for now :)
In my understanding, CFRunLoop cannot replace [NSApp run] for GUI
applications. For example, see this thread:
Hi, I just came across this thread, and I solved a similar problem earlier.
This is the code I ended up using:
NSImage *oldImage;
CALayer *layer;
CGImageRef newImage = [[[oldImage representations] objectAtIndex:0]
CGImage];
[layer setContents:(id)newImage];
It may be too late for this specific
Stack trace:
#0 0x92badc66 in -[NSException raise]
#1 0x901c3283 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:]
#2 0x901a0122 in AppKitMenuEventHandler
#3 0x90c79303 in DispatchEventToHandlers
#4 0x90c7873d in SendEventToEventTargetInternal
#5
On 10 Oct 2008, at 11:30 am, j o a r wrote:
Most apps use just the name, but I've never liked that and I support
your idea of using the bundle identifier. Makes a lot of sense.
Yep, seemed to make sense to me too, but I don't think I've ever seen
it, which is why I hesitated.
I think
78 matches
Mail list logo