Hello,
I have a rather complicated undo setting
My document Object has a Array of independent graphical items
(containing some properties).
Each item should have its own undo/redo based of selection in the
interface. So I select Item_1, modify it, select Item_2 and modify it,
too. Then I
Hi everyone,
I upgraded to iPhone SDK beta 8 and all of a sudden my project doesn't work.
In fact, the examples don't work either.
They all generate the same error message:
"Something.xib" could not be handled because ibtool cannot open files of this
type.
Excuse me? I thought ibtool was f
Hi,
Something that has bothered me for ages in Cocoa, but which I've always put to
one side, is how to handle certain deprecated methods when supporting more than
one OS. In some instances it's as simple as checking at runtime which OS is
being used and using the appropriate method accordingly,
Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov:
I didn't see "Sent Action"
group. It doesn't look like an IB bug. Or it looks like a very big
bug, but nobody reported it here...
I couldn't find a way to add "Sent Actions" to a custom control either.
Just hook it up per code in awakeFr
Le 5 juil. 08 à 14:08, Keith Blount a écrit :
Hi,
Something that has bothered me for ages in Cocoa, but which I've
always put to one side, is how to handle certain deprecated methods
when supporting more than one OS. In some instances it's as simple
as checking at runtime which OS is bei
Hi,
I need a notification when the user dismisses a popup menu _without
having actually clicked on a menu item_. A clumsy way of doing this
would be to check if the mouse is hovering over the menu in
NSPopUpButtonCell's "popUpDismissed" method. This way I can detect if
the user cancelled the opera
Hi,
Thanks for your reply. My project is set up just as you suggest and in fact I
do use checks to see whether selectors are available and use the newer methods
or older methods where appropriate where I can. But in the case I was talking
about, there is a whole class that is unavailable - NSVi
On Jul 5, 2008, at 5:08 AM, Keith Blount wrote:
I am currently overhauling printing in my application. I have a page
layout accessory view and I now also want to add a print panel
accessory view. My app runs on both Tiger and Leopard. -
setAccessoryView: works on both Tiger and Leopard, for
Many thanks for your reply, much appreciated. Where can I find information on
creating bundles and linking them only against a certain OS? I'm obviously
using the wrong search terms in both the docs and in Cocoa-dev... Under the
NSBundle documentation it explains how to get a class out of an exi
Never mind. I figured out I can detect action dismissal with a simple
boolean (actionDismissed = YES when receiving a
NSPopUpButtonWillPopUpNotification, actionDismissed = NO when
receiving a NSMenuWillSendActionNotification).
On Sat, Jul 5, 2008 at 2:46 PM, Fabian <[EMAIL PROTECTED]> wrote:
> Hi
Le 5 juil. 08 à 15:46, Keith Blount a écrit :
Many thanks for your reply, much appreciated. Where can I find
information on creating bundles and linking them only against a
certain OS? I'm obviously using the wrong search terms in both the
docs and in Cocoa-dev... Under the NSBundle docume
Le 5 juil. 08 à 15:56, Jean-Daniel Dupas a écrit :
Le 5 juil. 08 à 15:46, Keith Blount a écrit :
Many thanks for your reply, much appreciated. Where can I find
information on creating bundles and linking them only against a
certain OS? I'm obviously using the wrong search terms in both th
Thanks for the answer. I have submitted a bug.
On Sat, Jul 5, 2008 at 4:18 PM, Andreas Mayer <[EMAIL PROTECTED]> wrote:
>
> Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov:
>
>> I didn't see "Sent Action"
>> group. It doesn't look like an IB bug. Or it looks like a very big
>> bug, but nobod
>
> Date: Fri, 4 Jul 2008 19:22:30 -0400
> From: "Michael Ash" <[EMAIL PROTECTED]>
> Subject: Re: NSURLConnection and buffering
> To: "Cocoa Developers"
> Message-ID:
><[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=UTF-8
>
> On Fri, Jul 4, 2008 at 4:34 AM, Arvind Jain <[EMAIL PROT
Thank you very much for your reply and help - very clear and much appreciated.
Many thanks,
Keith
- Original Message
From: Jean-Daniel Dupas <[EMAIL PROTECTED]>
To: Jean-Daniel Dupas <[EMAIL PROTECTED]>
Cc: Keith Blount <[EMAIL PROTECTED]>; Cocoa Development
Sent: Saturday, July 5, 2008
> You cannot throw C++ exceptions across Objective-C functions. If you want to
> catch this exception, you will have to catch it in drawRect, and decide
> there what to do with it.
The earlier emails seem to mention that for 64bit apps this will not
be a problem. Is that the case or did I misunder
On Sat, Jul 5, 2008 at 8:08 AM, Keith Blount <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Something that has bothered me for ages in Cocoa, but which I've always put
> to one side, is how to handle certain deprecated methods when supporting more
> than one OS. In some instances it's as simple as checking
In my application, I would like to give my users the option to choose
various interface styles.
I've laid out my interface using a standard NSPanel as well as the HUD
version. Both are suitable, but some users will prefer one over the
other, of course.
Currently, I have both windows in one N
On 27.06.2008, at 14:56, Chilton Webb wrote:
(1) If I specify that I want anything other than the main view to
have a layer, that view will instantly 'pop' to the foreground in
the window. However, its actual view remains in the same place in
the view hierarchy.
As far as I've seen so fa
Is it possible to use NSWorkspace to open a file and pass in command
line arguments? I can't see anything in the docs about this and I
haven't found anything with google either.
Thanks
Jim
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On 05.07.2008, at 15:17, David Duncan wrote:
To handle a case like this, you are going to have to create a bundle
that you link against the 10.5 SDK and only load there. This bundle
will contain your NSViewController subclass and allow you to
conditionally call -setAccessoryView: on 10.4 and
> The earlier emails seem to mention that for 64bit apps this will not
> be a problem. Is that the case or did I misunderstand them?
You understood correctly. The restriction I described is for 32-bit apps.
--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice
__
On Jul 5, 2008, at 04:07, Georg Seifert wrote:
My document Object has a Array of independent graphical items
(containing some properties).
Each item should have its own undo/redo based of selection in the
interface. So I select Item_1, modify it, select Item_2 and modify
it, too. Then I
Hi
First some background:
We are in the process of porting a multi-platform application (ERP and
CRM) to cocoa. (we have a carbon client today, but also many other
platforms). Because of the multi platform aspect and large number
windows (about 100k windows in total for all languages) we can
--- On Sat, 7/5/08, Jim Crafton <[EMAIL PROTECTED]> wrote:
> Is it possible to use NSWorkspace to open a file and pass in
> command line arguments?
I assume you mean you want to run a program with arguments. If you're trying to
run a command-line program, it would be better to use NSTask rather
Hi,
I've been trying to use IKImageView, but have some issues:
1. After using rotate, image knows about changes but is still the same
size as loaded, imageSize shows new size after rotate but not image
itself. How can i take this picture with new size? There is nothing in
documentation about tha
On 05.07.2008, at 17:01, Jim Crafton wrote:
You cannot throw C++ exceptions across Objective-C functions. If
you want to
catch this exception, you will have to catch it in drawRect, and
decide
there what to do with it.
The earlier emails seem to mention that for 64bit apps this will not
be
On Sat, Jul 5, 2008 at 10:11 AM, Uli Kusterer
<[EMAIL PROTECTED]> wrote:
> On 05.07.2008, at 17:01, Jim Crafton wrote:
>>>
>>> You cannot throw C++ exceptions across Objective-C functions. If you want
>>> to
>>> catch this exception, you will have to catch it in drawRect, and decide
>>> there what
On Jul 5, 2008, at 8:34 AM, Uli Kusterer wrote:
On 27.06.2008, at 14:56, Chilton Webb wrote:
(1) If I specify that I want anything other than the main view to
have a layer, that view will instantly 'pop' to the foreground in
the window. However, its actual view remains in the same place in
Hi All,
I must be missing something blatantly obvious, but here goes: I made a
Preferences window whose File's Owner is a custom class:
PreferencesController, which is a subclass of NSWindowController. If you
click on the Preferences menu item, the window is shown by
[prefController showWind
On 05.07.2008, at 19:52, Clark Cox wrote:
If C++ code behaves oddly in the presence of unknown exceptions, then
that C++ code is broken. :)
Isn't that how code always is? ;-)
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
___
On Jul 5, 2008, at 11:05 AM, Daniel Richman wrote:
[prefController showWindow:self];
The first time you go to Preferences, the window and all the stuff
on it work fine. But on subsequent attempts to open the window,
nothing happens. What am I missing?
Is the "Release When Closed" flag set
My document Object has a Array of independent graphical items
(containing some properties).
Each item should have its own undo/redo based of selection in the
interface. So I select Item_1, modify it, select Item_2 and modify
it, too. Then I want to be able to select item_1 again and undo
Apple's SimpleToolbar code *is all* their MyDocument.m. My app would like
to place the toolbar-specific code *in a separate Controller*, say
"ToolbarController". This transfer does work to a limited extent, that is,
the toolbar does in fact appear at the top of the window, as it should.
However, *
On 05 Jul 08, at 04:23, Sam Jew wrote:
Hi everyone,
I upgraded to iPhon---
iPhone development is still under NDA. Wait another week and things
may change.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests o
On Jul 5, 2008, at 11:37, Georg Seifert wrote:
But than I have just another question: If I select more than one
object. All the handling of the undos of the single object I can do
in the undo/redo functions of my delegate. But how do I tell the
menu that the is "something" to undo? I woul
If the window is shown immediately and the "Visible at Launch" flag is
set, have you connected the 'window' outlet?
This was it! Thanks so much.
Daniel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mode
On 05.07.2008, at 21:05, John Love wrote:
Apple's SimpleToolbar code *is all* their MyDocument.m. My app
would like
to place the toolbar-specific code *in a separate Controller*, say
"ToolbarController". This transfer does work to a limited extent,
that is,
the toolbar does in fact appear
On Tue, Jul 1, 2008 at 3:29 AM, Chris Purcell <[EMAIL PROTECTED]> wrote:
> How would I return domain for example?
[cookie domain]
But you can retrieve a dictionary of all the properties of the cookie like this:
[cookie properties]
NSHTTPCookie Class Reference -
http://developer.apple.com/documen
> - (BOOL)needsDisplay;
> {
> NSResponder* resp = nil;
Note that there's an extra semicolon on the first line.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
Le 5 juil. 08 à 21:48, James Murdza a écrit :
- (BOOL)needsDisplay;
{
NSResponder* resp = nil;
Note that there's an extra semicolon on the first line.
This is a valid syntax in Obj-C. You can let the semicolon for method
implementation.
smime.p7s
Description: S/MIME cryptographic
On Jul 3, 2008, at 11:19 PM, Vitaly Ovchinnikov wrote:
After upgrade to XCode 3.0 I found out that now it is impossible. Old
links are still alive (marked with yellow triangles), but I can't
create a new one. I don't see "Sent action" group by right-clicking my
controls. If I perform Ctrl+Drag f
On Jul 5, 2008, at 8:30 AM, John Joyce wrote:
In my application, I would like to give my users the option to
choose various interface styles.
I've laid out my interface using a standard NSPanel as well as the
HUD version. Both are suitable, but some users will prefer one over
the other, of
I notice there are now about 120 Digital camera raw formats supported
by Mac OS X as of system 10.5.4.
I am trying to get a bit map from these camera files so I am using:
NSBitmapImageRep * imageBitMap = [NSBitmapImageRep
imageRepWithContentsOfFile:theFile]
For some raw files (Nikon NEF and
On Jul 5, 2008, at 3:53 PM, Chris Hanson wrote:
On Jul 5, 2008, at 8:30 AM, John Joyce wrote:
In my application, I would like to give my users the option to
choose various interface styles.
I've laid out my interface using a standard NSPanel as well as the
HUD version. Both are suitable,
On Jul 5, 2008, at 2:00 PM, James Merkel wrote:
So the question is how to go about reliably getting a bit map
reliably form these camera raw files?
Try getting a CGImageRef using ImageIO.
-- Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.app
I've searched everywhere I can think of, but I'm not finding much help on
how to design Cocoa frameworks for Leopard that support both retain/release
and garbage collection. Can anybody supply a good link apart from the Apple
documentation?
Here's a specific question: My frameworks contain classes
Hello,
I'm trying to get a document based app to save the contents of an
array (NSMutableArray *arrayOfReferences) that is declared and
initialised in the MyDocument.m. Whenever any method in MyDocument.m
or other classes tries to access the arrayOfReferences it has no
problems and everyt
On Jul 5, 2008, at 2:23 PM, Bill Cheeseman wrote:
So, I guess my frameworks should declare ...
__strong CGEventRef myEvent;
__strong AXUIElementRef myUIElement;
... if I am going to advertise the frameworks as supporting both
retain/release and garbage collection. Is that right?
That's c
On Jul 5, 2008, at 2:36 PM, Mark Wales wrote:
Is there any reason why a method would read an array as empty when
every other method has no problems accessing it?
I don't think so. More likely is that you are accessing an array that
is either empty or nil. It's impossible to tell without seei
El 04/07/2008, a las 22:54, Chris Hanson escribió:
On Jul 4, 2008, at 2:25 AM, Joan Lluch (casa) wrote:
First, GC makes programs go slower not because of the overhead of
the garbage collection itself, which I concede that may be
comparable to the retain/release calls in a non-managed
env
on 2008-07-05 5:56 PM, Chris Hanson at [EMAIL PROTECTED] wrote:
> On Jul 5, 2008, at 2:23 PM, Bill Cheeseman wrote:
>
>> So, I guess my frameworks should declare ...
>>
>> __strong CGEventRef myEvent;
>> __strong AXUIElementRef myUIElement;
>>
>> ... if I am going to advertise the framework
Chris, I have complex controls, so I don't think it's a good idea to
post all the code here. Let's imagine, that I need a control that
sends an action when I click it. So, the declaration will look like
this:
@interface MySuperControl : NSControl
{
// no data
}
// no methods
@end
implementatio
Ops, sorry. I read "control" instead of "controller". Of course I have
enough IBAction's in my controller class. I can Ctrl+Drag from any
standard control (NSButton or something like this). But not from the
custom one.
More, if I subclass standard control (like NSImageView, for example) -
IB eats
Is there any reason why a method would read an array as empty when
every other method has no problems accessing it?
I don't think so. More likely is that you are accessing an array
that is either empty or nil. It's impossible to tell without seeing
the code but my guess would be that you're
I'm hoping someone might be able to assist me with this question.
I have a Cocoa application, with an embedded command-line tool in the
Resources folder. This tool is from an outside source, and I have no
source code available for it. When launched, it creates its own window,
and displays a vari
Greetings,
I have a trivial AppleScript that I would like to compile and run
under Objective-C. When I try to compile or execute it via
compileAndReturnError or executeAndReturnError I'm permanetly
receiving a EXC_BAD_ACCESS.
Here's my code:
=== CODE START ===
- (IBAction) simpleScri
On Jul 5, 2008, at 14:23, Bill Cheeseman wrote:
Here's a specific question: My frameworks contain classes that declare
instance variables derived from CFType. For example, CGEventRef and
AXUIElementRef. In reading the "Instance variables" topic in the "Core
Foundation Variables" section of the
On Sat, 5 Jul 2008 22:36:07 +0100, Mark Wales <[EMAIL PROTECTED]>
said:
>Hello,
>
>I'm trying to get a document based app to save the contents of an
>array (NSMutableArray *arrayOfReferences) that is declared and
>initialised in the MyDocument.m. Whenever any method in MyDocument.m
>or other classe
Hi,
I am trying to do a periodic update based on the contents of a url, but when
the website is down with 5** error, I would like to not wait more than a couple
of seconds. So, I wrote the following code :
url = [NSURL ...];
updateTimer = [[NSTimer scheduledTimerWithTimeInterval:60.0
t
Le 6 juil. 08 à 00:43, Michael Moore a écrit :
I'm hoping someone might be able to assist me with this question.
I have a Cocoa application, with an embedded command-line tool in the
Resources folder. This tool is from an outside source, and I have no
source code available for it. When launc
On Sun, 6 Jul 2008 00:44:19 +0200, Alex Wied <[EMAIL PROTECTED]> said:
>Greetings,
>
>I have a trivial AppleScript that I would like to compile and run
>under Objective-C. When I try to compile or execute it via
>compileAndReturnError or executeAndReturnError I'm permanetly
>receiving a EXC_BAD_ACC
On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote:
However, let me copy an excerpt of the Cocoa documentation on the GC
algorithm that Cocoa uses.
You haven't updated your documentation since the beginning of November
last year.
[...]
The collector runs exclusively on the main threa
On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote:
Basically for performance reasons, the G. collector "preffers" to
let memory usage grow (while it is still available) in order to
avoid too many collections or to try that the user does not notice
it, and in practice it generally succeeds
Is it possible to define a key-equivalent for an action like in NSMenuItem but
without any visible object ?
The situation is like this: I have a NSTextField in nib file of my
Application-Menu-less menubar app. I want it to receive Command-v for 'paste',
but since I don't have/want a menuItem
On Sat, Jul 5, 2008 at 8:14 PM, Kanny <[EMAIL PROTECTED]> wrote:
> Is it possible to define a key-equivalent for an action like in NSMenuItem
> but without any visible object ?
>
> The situation is like this: I have a NSTextField in nib file of my
> Application-Menu-less menubar app. I want it to
It has the solid white up arrow, the apple/command symbol and what looks
like the "right arrow".
I press these three keys to no avail. What am I doing wrong?
--
If you can't be kind, at least have the decency to be vague.
___
Cocoa-dev mailing list (C
On 05 Jul 08, at 04:23, Sam Jew wrote:
>> Hi everyone,
>>
>> I upgraded to iPhon---
>iPhone development is still under NDA. Wait another week and things
>may change.
Evidently the existence of this bug means I'm not doing any development for
iPhone.
I've seen the NDA excuse trotted out i
On Sun, Jun 29, 2008 at 12:46 AM, Chris Purcell <[EMAIL PROTECTED]> wrote:
> Hello,
> Not sure where my problem is I've tried a few things and no success. I am
> trying to output NSHTTPCookieStorage *cookies array to a table view.
> Whenever I call the objectValueForTableColumn:row method the app
On 05 Jul 08, at 18:33, Alex Wait wrote:
It has the solid white up arrow, the apple/command symbol and what
looks
like the "right arrow".
I press these three keys to no avail. What am I doing wrong?
More of an XCode question than a Cocoa question, but the symbol you're
looking at is "retur
On 05 Jul 08, at 18:39, Sam Jew wrote:
On 05 Jul 08, at 04:23, Sam Jew wrote:
Hi everyone,
I upgraded to iPhon---
iPhone development is still under NDA. Wait another week and things
may change.
Evidently the existence of this bug means I'm not doing any
development for iPhone.
I've seen
On Jul 5, 2008, at 10:43 AM, Uli Kusterer wrote:
On 05.07.2008, at 15:17, David Duncan wrote:
To handle a case like this, you are going to have to create a
bundle that you link against the 10.5 SDK and only load there. This
bundle will contain your NSViewController subclass and allow you to
Will look into CGImageRef using ImageIO. However, I found that if I
use: imageRepsWithContentsOfFile: rather than
imageRepWithContentsOfFile: I can get a bit map from all raw files
that are supported by OS X. (At least for the raw files I have checked
so far). The method imageRepsWithConte
I've been putting together a drawing package using layers and having a
terrific time! But I'd appreciate a bit of guidance on the
recommended approach for highlighting a layer as the mouse moves over
the layer. This is intended to give the user positive feedback as to
which drawing elemen
On Sat, 5 Jul 2008 05:08:45 -0700 (PDT) Keith Blount wrote:
Hi,
Something that has bothered me for ages in Cocoa, but which I've
always put to one side, is how to handle certain deprecated methods
when supporting more than one OS. In some instances it's as simple
as checking at runtime whi
I've done a lot of stuff recently with Undo in my DrawKit project,
which sounds a little like what you are doing also. I have to say,
having one undo manager per object sounds like a recipe for confusion.
It's just not how undo is intended to work, and not how users expect
Undo to work.
I
Whether you find the NDA satisfying or not isn't terribly relevant.
Discussion of the iPhone SDK is NOT allowed here.
Repeated and flagrant violations such as this are forwarded to WWDR
for followup.
scott
moderator
On Jul 5, 2008, at 9:39 PM, Sam Jew wrote:
On 05 Jul 08, at 04:23, Sam
On 6 Jul 2008, at 8:29 am, Mark Wales wrote:
@interface MyDocument : NSDocument
{
NSMutableArray *arrayOfReferences;
}
NSLog(@"%@", [self arrayOfReferences]); // <== Shows the array
as empty
Do you actually have an accessor method for arrayOfRef
On Jul 6, 2008, at 12:25 AM, James Merkel wrote:
On Sat, 5 Jul 2008 05:08:45 -0700 (PDT) Keith Blount wrote:
Hi,
Something that has bothered me for ages in Cocoa, but which I've
always put to one side, is how to handle certain deprecated methods
when supporting more than one OS. In some i
On Jul 5, 2008, at 3:52 PM, Quincey Morris wrote:
The other thing worth noting is that, when GC is enabled, any CF
object that is documented to be *returned* already autoreleased from
a frameworks function is actually returned with a reference count of
1, so you still need to call CFMakeCol
On Jul 5, 2008, at 10:07 PM, Chris Hanson wrote:
Can you give an example of a framework method that's documented to
return an autoreleased CF object?
NSBitmapImageRep:
- (CGImageRef)CGImage
Returns an autoreleased CGImage object (an opaque type) from the
receiver’s current bitmap data.
On Jul 5, 2008, at 11:04 PM, mmalc crawford wrote:
On Jul 5, 2008, at 10:07 PM, Chris Hanson wrote:
Can you give an example of a framework method that's documented to
return an autoreleased CF object?
NSBitmapImageRep:
- (CGImageRef)CGImage
Returns an autoreleased CGImage object (an opaqu
On Jul 5, 2008, at 22:07, Chris Hanson wrote:
On Jul 5, 2008, at 3:52 PM, Quincey Morris wrote:
The other thing worth noting is that, when GC is enabled, any CF
object that is documented to be *returned* already autoreleased
from a frameworks function is actually returned with a reference
El 06/07/2008, a las 2:05, mmalc crawford escribió:
On Jul 5, 2008, at 3:00 PM, Joan Lluch (casa) wrote:
However, let me copy an excerpt of the Cocoa documentation on the
GC algorithm that Cocoa uses.
You haven't updated your documentation since the beginning of
November last year.
84 matches
Mail list logo