Hi,
for an application targeted for 10.4 I need to access the value of
some key properties defined
for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary.
Is there a legal way to do this?
Thank you.
Mirko
___
Cocoa-dev mailing
Too late, I've been doing that since 1990 in C++.
Seriously, I've yet to run into a problem with it and I have been
doing it forever. Just don't be overly general with your variable
names. Like I probably wouldn't use _window in a custom view subclass
or anything.
-Todd Blanchard
On
On Apr 6, 2008, at 22:44, mmalc crawford wrote:
The fact that Core Data is an object graph management and
persistence framework does not in an of itself preclude it from
reverse engineering an existing database. EOF is also an object
graph management and persistence framework but it is
On Apr 7, 2008, at 12:31 AM, Peter Zegelin wrote:
Thanks everyone - I'm quite new to this and naively assumed it might
be doable. I can see now why it can't.
To reiterate, there is no reason *in principle* why Core Data could
not do this. If it's something you would like to see, file an
On Apr 7, 2008, at 00:51, mmalc crawford wrote:
To reiterate, there is no reason *in principle* why Core Data could
not do this.
Indeed, there's no reason in principle why Core Data could not be EOF.
Yet a core principle of Core Data is its abstraction of the model away
from the
On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote:
To reiterate, there is no reason *in principle* why Core Data could
not do this.
Indeed, there's no reason in principle why Core Data could not be EOF.
Yet a core principle of Core Data is its abstraction of the model
away from the
I'm trying to constrain the value of an NSSlider (while it is being
dragged) depending on the state of a modifier key and being totally
new to Cocoa am getting nowhere really fast! For a start, I don't
seem to be able to find a way to test for a modifier key during the
actual drag.
Can
I'm no expert, but you might want to look at mouseDownFlags in NSCell.
Alternatively, you can recover the modifiers from the NSEvent given in
mouseDown in your control. Or, you could wait until someone that knows what
they are actually talking about replies :-)
Alli
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit :
I'm trying to constrain the value of an NSSlider (while it is being
dragged) depending on the state of a modifier key and being totally
new to Cocoa am getting nowhere really fast! For a start, I don't
seem to be able to find a way to test for
On 07/04/2008, at 9:14 PM, Allison Newman wrote:
I'm no expert, but you might want to look at mouseDownFlags in
NSCell. Alternatively, you can recover the modifiers from the
NSEvent given in mouseDown in your control. Or, you could wait
until someone that knows what they are actually
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit :
I'm trying to constrain the value of an NSSlider (while it is being
dragged) depending on the state of a modifier key and being totally
new to Cocoa am getting nowhere really fast! For a
On 07/04/2008, at 10:10 PM, Peter Zegelin wrote:
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit :
I'm trying to constrain the value of an NSSlider (while it is
being dragged) depending on the state of a modifier key and being
totally new
Coming from other object based languages I'm aware that each language can
have it's own idioms for common tasks. In particular coming from doing a lot
of python, I'm finding myself wanting to do a few things with NSArrays that
I would do quite easily with python lists.
Can anybody suggest a good
Hi all,
In a separate thread I call:
[self performSelectorOnMainThread: @selector(broadcastMessage:)
withObject: nil waitUntilDone: NO];
Now, is there a way for the main thread to inspect the queue of
pending messages, their targets and arguments?
(I would like my unit test to verify that
On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 14:10, Peter Zegelin a écrit :
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit :
I'm trying to constrain the value of an NSSlider (while it is
being dragged) depending on
Sounds like a bug to me. I have the same issue on a MBP with 10.5.2.
Although i suppose this could be 'working as intended' since the
pattern formats for isLike: dont seem to be well documented.
On Apr 7, 2008, at 9:11 AM, Yvan BARTHÉLEMY wrote:
On my machine (quite recent 20 inches iMac
On Apr 5, 2008, at 7:17PM, Quincey Morris wrote:
The most common situation where I run into local/instance variable
name conflicts is setter methods. If the property and the instance
variable are both 'whatever', it makes sense to me to call the
setter argument variable 'newWhatever',
On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote:
Then I'm sure you're very familiar with the fragile base class
problem. Just don't do it.
Ivar name conflicts don't have anything to do with the FBC problem,
not in compiled languages. The FBC problem arises when the size of a
superclass
Le 7 avr. 08 à 16:03, Peter Zegelin a écrit :
On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 14:10, Peter Zegelin a écrit :
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit :
I'm trying to constrain the value of an
If this is not a bug in Cocoa, so it's a bug in the documentation, so
you can fill a bug report.
Le 7 avr. 08 à 16:26, Matt Burnett a écrit :
Sounds like a bug to me. I have the same issue on a MBP with 10.5.2.
Although i suppose this could be 'working as intended' since the
pattern
On 7 Apr '08, at 5:33 AM, Paul Sargent wrote:
Can anybody suggest a good way to:
1) Given an ordered set of objects, create a new non-mutable ordered
set,
with all the duplicates removed?
2) Given an ordered set of objects, create a new non-mutable ordered
set,
with each entry being the
On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote:
In a separate thread I call:
[self performSelectorOnMainThread: @selector(broadcastMessage:)
withObject: nil waitUntilDone: NO];
Now, is there a way for the main thread to inspect the queue of
pending messages, their targets and arguments?
Le 7 avr. 08 à 16:49, Jens Alfke a écrit :
On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote:
In a separate thread I call:
[self performSelectorOnMainThread: @selector(broadcastMessage:)
withObject: nil waitUntilDone: NO];
Now, is there a way for the main thread to inspect the queue of
On Apr 7, 2008, at 9:39 AM, Jens Alfke wrote:
On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote:
Then I'm sure you're very familiar with the fragile base class
problem. Just don't do it.
Ivar name conflicts don't have anything to do with the FBC problem,
not in compiled languages. The FBC
If you ask an NSImage for its size, the DPI in the image is taken
into account. You can ask for pixelsHigh and pixelsWide in order to
get the number of pixels.
-Kenny
On Apr 6, 2008, at 1:40 PM, Lorenzo wrote:
Still working with image-processing...
I have a source image 1680 x 1050 with
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group
(CAWUG) is holding our next meeting Tuesday, April 8th, at 7:00 PM at
the Apple Store on Michigan Ave.
Agenda:
- Introductions Announcements
- Chuck Remes on MacRuby
- adjournment to O'Toole's
On Apr 7, 2008, at 5:33 AM, Paul Sargent wrote:
Can anybody suggest a good way to:
1) Given an ordered set of objects, create a new non-mutable ordered
set,
with all the duplicates removed?
You could do this using the KVC set and array operators
I am using NSURLConnection to send large posts (1MB) to a web server.
How can i get the status/progress information for sending the request.
I can get the progress for receiving the reply with
connection:didReceiveResponse: and connection:didReceiveData:, but i
dont seem to see anything
You may also want to look in to NSPredicate and an arrays
'filteredArrayUsingPredicate:' method.
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/Reference/NSPredicate.html
http://theocacao.com/document.page/346
Cocoa doesn't have ordered sets. It has arrays (NSArray), unordered sets
(NSSet), and unordered key-value tables (NSDictionary). Any of these can
optionally be mutable. NSCountedSet also allows for the equivalent of a
multiset, but for some reason there is no NSCountedDictionary, for the
As others have noted, RTFD is a packaged file format, consisting of a
directory in the file system containing the underlying RTF and any
attachments. There are therefore two representations of RTFD: first,
the on-disk format, and second, a serialized format used on the
pasteboard. There
I'm looking for an open-source NSToolbar-like toolbar implementation...
do any exist? I haven't found any yet.
I want to check it out and see how some things are done... I don't
really need a ton of features outside the standard toolbar stuff, it's
more for learning/research to see what can
Hello all:
For those of you who do not like answering elementary questions, you
might want to give this message a pass.
I am making my first foray into writing Cocoa applications, and I have
created a very simple class. The header file looks like this:
/* Chooser */
#import
Cocotron is a great place to look for things like this:
http://cocotron.googlecode.com/svn/trunk/AppKit/NSToolbar.subproj/
Don't know how well developed the NSToolbar is, but in general they
have a lot of cool stuff ported.
Daniel
On Apr 7, 2008, at 12:47 PM, John Stiles wrote:
I'm looking
On 7 Apr '08, at 9:47 AM, John Stiles wrote:
I'm looking for an open-source NSToolbar-like toolbar
implementation... do any exist? I haven't found any yet.
I'm not aware of any. My hunch is that it'd be a pain to re-implement
with all of the features users expect from standard toolbars.
Change the function declarations/definitions to
- (NSString*)ChooseString:(int) IntVal (the * goes inside the
parenthesis)
On Apr 7, 2008, at 10:45 AM, john darnell wrote:
Hello all:
For those of you who do not like answering elementary questions, you
might want to give this message a
Recheck the method declaration syntax in your book.
It's
- (NSString *)myMethodName:(type)arg;
and not
- (NSString ) *myMethodName:(type)arg;
the '*' in NSString * is part of the type.
Le 7 avr. 08 à 18:45, john darnell a écrit :
Hello all:
For those of you who do not like answering
On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel [EMAIL PROTECTED] wrote:
Change the function declarations/definitions to
- (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis)
Additionally, it's good practice to start method names and variables
with lowercase letters;
On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote:
On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel
[EMAIL PROTECTED] wrote:
Change the function declarations/definitions to
- (NSString*)ChooseString:(int) IntVal (the * goes inside the
parenthesis)
Additionally, it's good practice to
On Apr 6, 2008, at 11:22 PM, Mirko Viviani wrote:
for an application targeted for 10.4 I need to access the value of
some key properties defined
for 10.5 in CGImageProperties.h, like
kCGImagePropertyExifAuxDictionary.
Is there a legal way to do this?
Assuming you have your project set
This is a prime use for Higher Order messaging:
http://www.metaobject.com/papers/Higher_Order_Messaging_OOPSLA_2005.pdf
http://www.cocoadev.com/index.pl?HigherOrderMessaging
http://www.oreilly.com/pub/a/mac/2004/07/16/hom.html
HOM takes this
// which of these employee objects earn more than
To follow up, a few of us from San Diego chatted offline and have
decided to meet around 5:30pm this Wednesday at Vinaka Cafe (
http://www.yelp.com/biz/vinaka-cafe-carlsbad ) so we can carpool up to
Cocoaheads in Lake Forest. Contact me offline if you'd like to hitch
a ride or be a driver.
Thanks to all of you who answered my question. I had seven answers
within an hour of posting, and it shows me that this bunch is willing to
help, even with simple questions (I groaned when I read the first
message, and realized how *obvious* the syntax error was).
I'll try not to abuse this
I was wondering how many on this list might interested in a Cocoa type
meetup in the Dallas/Fort Worth area?
I've very new to Cocoa and I think it would be great to get some
people together to learn from each other and to see what others are
working on. Maybe even get a full fledged CocoaHeads
There're also 2 articles concerning cocoa style available on
CocoaDevCentral: http://cocoadevcentral.com/articles/82.php
On Apr 7, 2008, at 7:40 PM, Douglas Davidson wrote:
On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote:
On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel [EMAIL
In diagnosing this problem, I tried to use the
NSKeyValueObservingOptionPrior when observing NSArrayController's
selection, but I never got a
observeValueForKeyPath:ofObject:change:context: where the change
dictionary contained an NSKeyValueChangeNotificationIsPriorKey entry.
This leads
On 07/apr/08, at 19:43, David Duncan wrote:
for an application targeted for 10.4 I need to access the value of
some key properties defined
for 10.5 in CGImageProperties.h, like
kCGImagePropertyExifAuxDictionary.
Assuming you have your project set properly, standard weak-linking
policies
On Apr 7, 2008, at 12:46 PM, Mirko Viviani wrote:
I've tried linking with -framework and -weak_framework with the same
results.
kCGImagePropertyDNGDictionary and others properties declared in
CGImageProperties.h are not defined in the framework.
Is it a bug or am I missing something?
You
On Apr 7, 2008, at 11:36 AM, Patrick Burleson wrote:
I was wondering how many on this list might interested in a Cocoa type
meetup in the Dallas/Fort Worth area?
I've very new to Cocoa and I think it would be great to get some
people together to learn from each other and to see what others are
Do you know if SVG in a webkit view performs faster than a PDF in an
NSImageView?
Mike
On Apr 6, 2008, at 3:38 PM, glenn andreas wrote:
If only there were some sort of Scalable Vector Graphics format that
were available, oh, yeah, there is - SVG is available via WebKit on
Leopard, not to
On Apr 7, 2008, at 10:26 AM, Jim Correia wrote:
There is already the possibility of KVC collisions regardless of how
you name your iVars.
Consider...
NSBaseClass, and MyClass derived from it.
Targetting 10.4, MyClass has an iVar named mImportantProperty (using
m prefix here only for
Hey Patrick,
I was going to start a chapter up earlier in the year, but things got
busy, and I'll be in California all summer. I'm certainly interested
in it when I get back in the Fall, and possibly even gauging interest
before then.
Cheers,
Elliott
I would be interested in a group closer to Fort Worth (Grapevine,
Southlake, Keller).
--Waqar
On Apr 7, 2008, at 1:36 PM, Patrick Burleson wrote:
I was wondering how many on this list might interested in a Cocoa type
meetup in the Dallas/Fort Worth area?
I've very new to Cocoa and I think it
Howdy LA CocoaHeads!
Ricardo Silva will be giving us a presentation on Quartz Composer.
We meet on Thursday at the offices of E! Entertainment at 7:30pm.
Our meeting location is
5750 Wilshire Blvd
Los Angeles, CA 90036.
Here's a google map of the location:
On Apr 7, 2008, at 12:10, Chris Hanson wrote:
On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote:
Yet a core principle of Core Data is its abstraction of the model
away from the structure of the various persistent store formats.
Core Data already offers the ability for developers to use an
Hi - I'm having trouble binding my table column to a key in my
NSArrayController.
My NSArrayController is set to control an array of NSMutableDictionary
objects. This array controller has its contentsArray bound to the
'actualArray' (NSMutableArray) of my class object. When I set the
I have a deamon application that starts up and registers itself using
a pre-defined name. (NSConnection registerName: name]
I have another application that is started and it looks for the
connection with [NSConnection
rootProxyForConnectionWithRegisteredName: name host:nil].
This all works
The problem ended up being that the object returned by -
[NSArrayController selection] is a private proxy object, which
dynamically proxies the current selection of the array controller.
This means that the views were trying to stop observing the current
selection's relationships, rather
I have an NSSegmentedControl on which I've enabled the continuous
setting (via IB). However, it doesn't send out continuous messages
while I'm continually pressing one of the segments; it only fires
(once) upon mouseUp.
I can find no documentation that says that NSSegmentedControl
Hi,
I have a document-based Cocoa application, in which I display quartz
routines directly to the context of my NSView.
Following the documentation I added this methods to enable printing in
my application:
on NSDocument:
- (void)printDocumentWithSettings:(NSDictionary *)printSettings
On 08/04/2008, at 12:41 AM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 16:03, Peter Zegelin a écrit :
On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 14:10, Peter Zegelin a écrit :
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 12:14, Peter
I am trying to add some hotkeys to buttons in my app, and I've hit a
weird snag. Specifically, the shift modifier flag appears to be ignored
for anything other than alphanumeric keys—i.e. I can't make a button
that corresponds to cmd+F1 and a second button that corresponds to
cmd+shift+F1.
For the most part, anything you want to do with NSSplitView you can do
with RBSplitView (or others) and vice versa. Where RBSplitView really
excels is its ease of implementation. Even though NSSplitView in 10.5
is significantly better, I still find that RBSlitView has the upper
hand in
For any curious Apple engineers, I've just filed this issue as
rdar://5848023 and attached a test app (four lines of code).
John Stiles wrote:
I am trying to add some hotkeys to buttons in my app, and I've hit a
weird snag. Specifically, the shift modifier flag appears to be
ignored for
I need to get the creator code of my app's bundle without diving into
the bundle and reading the plist directly.
My code looks like this:
OSType creator = 0;
NSDictionary *itemDictionary = nil;
itemDictionary = [ defaultFileManager
fileAttributesAtPath:enumeratedItem traverseLink:NO ];
I have managed to get my slider working the way I want it to by
overriding mousedown and mousedragged, however there is still one
small detail. I cant see how to make the slider knob show its 'pushed'
image while the slider is being dragged. Does anyone know how to do
this?
thanks!
On Apr 7, 2008, at 10:11 PM, Mike wrote:
I need to get the creator code of my app's bundle without diving
into the bundle and reading the plist directly.
[... snip ...]
The problem is, fileHFSCreatorCode on the returned attributes
dictionary always returns 0 or an empty OSType. Is there
Yes it does - thanks! RBSplitView works great and actually
experimented with it before playing around with the regular NSSplitView.
Peter
On 08/04/2008, at 10:35 AM, Ben Einstein wrote:
For the most part, anything you want to do with NSSplitView you can
do with RBSplitView (or others)
Hey, count me in. I'm in Irving.
Dennis J. Hagner
--
Date: Mon, 7 Apr 2008 15:49:26 -0500
From: Waqar Malik [EMAIL PROTECTED]
Subject: Re: [OT] Dallas Cocoa Meetup?
To: Patrick Burleson [EMAIL PROTECTED]
Cc: cocoa-dev@lists.apple.com
Message-ID: [EMAIL PROTECTED]
On Apr 7, 2008, at 10:49 PM, Mike wrote:
In that case, how do I get the fullpath to the item from the
iterator? There doesn't seem to be any key in the info dictionary
for the current item's fullpath.
Huh? You mean the enumeratedItem from your original code snippet?
You never indicated
On 7 Apr '08, at 8:35 AM, Matt Burnett wrote:
I am using NSURLConnection to send large posts (1MB) to a web
server. How can i get the status/progress information for sending
the request.
Set the request body to a custom stream implementation, and your
stream will get called as the
On 7 Apr '08, at 3:32 PM, SD wrote:
If I launch the deamon via command line using my regular user and
then I launch the application using the Security.framework
authentication, the application does not find the connection and
starts a second deamon.
Sounds like the app and daemon are
On 7 Apr '08, at 5:52 PM, Brad Peterson wrote:
Just embed it as a resource, and then use the code below to load it
for use.
This seems less efficient (and more complicated) than either of the
two earlier solutions. Loading the font into memory first means it
takes up heap space, which
On 7 Apr '08, at 8:11 PM, Mike wrote:
I need to get the creator code of my app's bundle without diving
into the bundle and reading the plist directly.
You're mixing up HFS creator codes with bundle identifiers, I think.
HFS creator codes are attributes of document files that identify what
74 matches
Mail list logo