If I make an NSArray in the following manner:
NSArray *newArray = [NSArray arrayWithArray:oldArray];
[newArray retain];
Now I it is my responsobolity to send a release message to newArray.
But am I responsible to send release messages to the contents of
newArray?
If the oldArray
If you use PDFKit 10.5 to save and then restore a pdf file, are
PDFAnnotationTextWidget stringValues preserved? (These are the text fields
that you enter in PDF forms.)
They aren't being saved/restored in my program. This is the line that creates
the pdfData which is written to my file:
On 3 May 2008, at 4:00 pm, Hrishikesh Muruk wrote:
If I make an NSArray in the following manner:
NSArray *newArray = [NSArray arrayWithArray:oldArray];
[newArray retain];
Now I it is my responsobolity to send a release message to newArray.
But am I responsible to send release messages to
NSArray *newArray = [NSArray arrayWithArray:oldArray];
[newArray retain];
Now I it is my responsobolity to send a release message to newArray.
But am I responsible to send release messages to the contents of
newArray?
No, the NSArray is responsible for its items.
How do I do a deep copy?
And after that, you can either uses NSImage but it's not really nice,
or create a NSView subclass to do your drawing.
I had to do this myself and want to share some knowledge.
Actually, the notification windows is 161 points wide, and 156 points
high (with 1 point = 1 pixel when use scale
On May 3, 2008, at 6:54 AM, Joel Norvell wrote:
If you use PDFKit 10.5 to save and then restore a pdf file, are
PDFAnnotationTextWidget stringValues preserved? (These are the text
fields
that you enter in PDF forms.)
They are not preserved. If you are saving data into your own file
Hi everyone,
I was just curious-- Does anyone know off the top of their head how one makes
a button's action in an xcode project accessible via applescript?
In otherwords, say your main window has a button named start.
How do you make it so that an end user could write their own applescript
I have a custom view that contains a (covering) NSImageView. The latter
is disabled. I want the custom view to handle all drag operations. This
works fine as long as I don't drag in a type (e.g., NSFilenamesPboardType)
that NSImageView directly supports. setAllowsCutCopyPaste:NO for the
Am 03.05.2008 um 03:19 schrieb Graham Cox:
One thing to clarify about Carbon vs. Cocoa - while Cocoa itself is
unavailable, you can of course use Core Foundation. However
everything in Carbon is lower level and generally more work than
Cocoa, so be prepared ;-)
Cocoa unavailable? What?
Am 03.05.2008 um 05:58 schrieb Michael Ash:
ObjC gets set up simply by linking to it, so that happens without any
intervention. Foundation can be used with no additional setup as well.
AppKit requires that you initialize it by calling NSApplicationLoad()
before using it for anything else.
Am 03.05.2008 um 12:09 schrieb Patrick J. Collins:
I am assuming there is something in interface builder that you need
to do to
accomplish this, but I just don't know what it is.
No, not in IB. AppleScript in general doesn't script the UI, but
rather what is the controller layer in a
Le 3 mai 08 à 13:36, Duncan a écrit :
On May 3, 2008, at 5:00 AM, Graham Cox [EMAIL PROTECTED] wrote:
One thing I realised after the previous posting is that the
performance hit I'm seeing is because unlike the usual drawRect:
case, I wasn't doing any clipping to the update area, so the
I have a NSMenuItem int a NSStatusBarItem that displays the remaining
time of a timer. It is only updated when I'm not viewing the menu.
When I click in the menu, I can see in the debug console that no there
are no calls to the timer loop function.
How can I solve it?
--
On May 3, 2008, at 7:31 AM, Jere Gmail wrote:
I have a NSMenuItem int a NSStatusBarItem that displays the remaining
time of a timer. It is only updated when I'm not viewing the menu.
When I click in the menu, I can see in the debug console that no there
are no calls to the timer loop function.
On 3 May 2008, at 9:36 pm, Duncan wrote:
If you're going to do your drawing in a separate thread, you'll need
to remember WHAT to draw. I wouldn't call it hackish, I'd call it
the cost of doing business that way.
If you implement a job queue, add the list of dirty rectangles to
each job
I have been reading the documentation for implementing the
NSFastEnumeration protocol and am having some difficulties following it.
For completeness, here is the protocol method:
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState
*)state objects:(id *)stackbuf
Hmm, your previous message/thread made it and has two answers.
Regards,
Thomas
On May 2, 2008, at 10:41 AM, Ben wrote:
I have been reading the documentation for implementing the
NSFastEnumeration protocol and am having some difficulties following
it.
For completeness, here is the
Le 3 mai 08 à 14:52, Graham Cox a écrit :
On 3 May 2008, at 9:36 pm, Duncan wrote:
If you're going to do your drawing in a separate thread, you'll
need to remember WHAT to draw. I wouldn't call it hackish, I'd
call it the cost of doing business that way.
If you implement a job queue,
Cocoa already coalesces updates in this way, so when drawRect: is
called, the list of rects is the merged list.
I does raise a question though - is there a way to get, at any point
in time, the list of merged rects needing update from a view *at that
point* - in other words, outside of a
Hi,
I'm having this problem where I cannot hide menu items in my dock
menu. [menuItem setHidden:YES] does nothing, nor does checking the
Hidden checkbox in IB. The dock menu itself is created in IB and
connected to NSApp's dockMenu outlet. Is this a bug or am I missing
something?
I know I can
On May 3, 2008, at 8:30 AM, Graham Cox wrote:
Cocoa already coalesces updates in this way, so when drawRect: is
called, the list of rects is the merged list.
I does raise a question though - is there a way to get, at any point
in time, the list of merged rects needing update from a view
Le 3 mai 08 à 15:30, Graham Cox a écrit :
Cocoa already coalesces updates in this way, so when drawRect: is
called, the list of rects is the merged list.
Cocoa already do this for synchronous drawing, and after each
drawRect: call it resets the list. If the drawRect: method is call
On 3 May 2008, at 11:55 pm, Jean-Daniel Dupas wrote:
Le 3 mai 08 à 15:30, Graham Cox a écrit :
Cocoa already coalesces updates in this way, so when drawRect: is
called, the list of rects is the merged list.
Cocoa already do this for synchronous drawing, and after each
drawRect: call it
How would I convert XML to NSDictionary so I can read it.
Here is an example of how my XML file looks like
?xml version=1.0 encoding=iso-8859-1?
profile
files
file url=http://www.example.com/file1; size=522656 name=File
Number 1/
file url=http://www.example.com/file1; size=4533 name=File
I added a button to manually refresh the NSTextView, but things don't
change at all.
On 2-May-08, at 4:24 AM, Stéphane Sudre wrote:
On May 1, 2008, at 11:19 PM, Luong Dang wrote:
It's from the keyboard. Basically, I just hit the Delete key.
I also noticed that in Interface Builder's test
On 3 May '08, at 6:44 AM, [EMAIL PROTECTED] wrote:
I'm having this problem where I cannot hide menu items in my dock
menu. [menuItem setHidden:YES] does nothing, nor does checking the
Hidden checkbox in IB. The dock menu itself is created in IB and
connected to NSApp's dockMenu outlet. Is this
On 3 May '08, at 8:01 AM, Mr. Gecko wrote:
How would I convert XML to NSDictionary so I can read it.
We already answered this yesterday: NSXMLDocument. It doesn't convert
it literally into an NSDictionary, but it's a tree of NSXMLElement
objects that you can use in much the same way.
Le 3 mai 08 à 17:01, Mr. Gecko a écrit :
How would I convert XML to NSDictionary so I can read it.
Here is an example of how my XML file looks like
?xml version=1.0 encoding=iso-8859-1?
profile
files
file url=http://www.example.com/file1; size=522656 name=File
Number 1/
file
Thanks Jens. Sounds to me we don't need the quotation marks round bug.
On Sat, May 3, 2008 at 5:46 PM, Jens Alfke [EMAIL PROTECTED] wrote:
On 3 May '08, at 6:44 AM, [EMAIL PROTECTED] wrote:
I'm having this problem where I cannot hide menu items in my dock
menu. [menuItem setHidden:YES]
Hello all,
Thanks for your previous help. I'm trying to firm up my understanding
of NSPopupButton. I wrote a test project modeled after Kevin Wojniak's
example here:
http://forums.macrumors.com/showthread.php?p=4839485 , post #7,
referencing matt neuburg's example.
One NSPopupButton
That post was in the middle of the night when I couldn't sleep. I
researched the archives this morning and found the solution. I added an
outlet in my controller to the NSImageView and in awakeFromNib called
unregisterDraggedTypes for the NSImageView. Problem solved. However, I
still
Ok I have been searching for hours.
Here is exact details.
I have an xml file on the web for files and I use it for flash I don't
want to make an xml plist on the web because I don't want to have two
sources.
I need to read it in cocoa here is the layout of the cocoa file.
?xml version=1.0
Dear Antonio,
Thank you very much for clarifying this! And CONGRATULATIONS on your new
PDFClerk Pro 3.0 rewritten from the ground up to take advantage of Mac OS X
10.5's many improvements!
Best regards,
Joel
--- Antonio Nunes [EMAIL PROTECTED] wrote:
On May 3, 2008, at 6:54 AM, Joel Norvell
NSXMLElement represents a single element, not an NSDictionary. Just
purge the word NSDictionary from your mind, and start reading:
Hi there
I have a few questions about what way should I choose for develop an
real time video analysis app. I already have a solid knowledge of
image analysis and objetive c aswell. The basic idea to start with
this is an app that get a real time video signal and pass a set of
filters
Also see this sample code using libxml2, should there be some reason
you can't use NSXMLDocument:
http://inessential.com/?comments=1postid=3489
Hal
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
In a photography app, I'm chaining a series of CIFilters together to
process the image. I'm able to do the chain just fine, but I'm only
using a few filters at the moment. As I increase the length of this
chain, am I going to run into performance issues? Here's my code:
exposureFilter
On May 2, 2008, at 5:37 PM, Graham Cox wrote:
is a Carbon app, so there is no Cocoa runtime available. You can use
a nib, but it has to be a Carbon one, so the functions you need to
look at are in the HIView family of Carbon functions.
It doesn't matter what Carbon app you're writing a
Le 3 mai 08 à 20:06, Josh Burnett a écrit :
In a photography app, I'm chaining a series of CIFilters together to
process the image. I'm able to do the chain just fine, but I'm only
using a few filters at the moment. As I increase the length of this
chain, am I going to run into
Le 3 mai 08 à 19:49, Yreaction JP a écrit :
Hi there
I have a few questions about what way should I choose for develop an
real time video analysis app. I already have a solid knowledge of
image analysis and objetive c aswell. The basic idea to start with
this is an app that get a real
Ok I was able to one of the childs from my xml file now what I am
asking is how to get the attributes from it
I uses this
NSXMLDocument *xml = [[NSXMLDocument alloc] initWithData:[NSData
dataWithContentsOfURL:[NSURL URLWithString:@http://www.example.com/xmlfile.xml
]]
On Thu, May 1, 2008 at 10:09 PM, Måns Severin [EMAIL PROTECTED] wrote:
Is there some kind of delegate / observer method of the NSArrayController
to see when it is done changing selection?
You could register for KVO notifications on NSArrayController's
selectedObjects or similar.
Hamish
Hello,
Is there an easy way within Obj-C to read HTTP headers, to write HTTP
headers, and to send HTTP headers? As this will be the easiest way for
me to authenticate for an XML API I am using, and to read http status
codes (if the action was completed - or the error).
Jeremy
For a long
On 03 May 08, at 10:49, Yreaction JP wrote:
I have a few questions about what way should I choose for develop an
real time video analysis app. I already have a solid knowledge of
image analysis and objetive c aswell. The basic idea to start with
this is an app that get a real time video
I'm attempting to convert my Modern Carbon/Windows GDI+ application
framework to Cocoa for 64-bit support, and am paradoxically finding
the easy things hard and the hard things easy. My latest case in
point: My controls (checkboxes) aren't redrawing when they change
state, and default
Hi,
I was thinking wheter it is possible to create a sort of proxy
window which displays the content of another. Of course, the further
step would be to also pass events from the proxied window to the
source one. Is this even possible?
Thanks in advance,
Daniel
Am 03.05.2008 um 23:35 schrieb Jeremy:
Is there an easy way within Obj-C to read HTTP headers, to write
HTTP headers, and to send HTTP headers? As this will be the easiest
way for me to authenticate for an XML API I am using, and to read
http status codes (if the action was completed - or
So... Using
[NSURLRequest HTTPBody]; will return what is returned. I don't see any
way to build and send HTTP headers.
Jeremy
For a long time it puzzled me how something so expensive, so leading
edge, could be so useless, and then it occurred to me that a computer
is a stupid machine
On May 3, 2008, at 3:42 PM, Christopher Kempke wrote:
Then I draw the window with:
[iWindow makeKeyAndOrderFront:nil];
And run it as a modal dialog with:
[NSApp runModalForWindow:iWindow];
The docs for runModalForWindow: explicitly say not to send
makeKeyAndOrderFront: to
On Sat, May 3, 2008 at 6:05 PM, Jeremy [EMAIL PROTECTED] wrote:
So... Using
[NSURLRequest HTTPBody]; will return what is returned. I don't see any way
to build and send HTTP headers.
NSMutableURLRequest has all of that.
--Kyle Sluder
___
On Sat, May 3, 2008 at 5:42 PM, Christopher Kempke
[EMAIL PROTECTED] wrote:
Here's some random clips from my code. The Windows for my (modal) dialog
are are created by:
theWindow = [[NSWindow alloc]
initWithContentRect:*(NSRect*)platRect styleMask:winStyleMask ~
Le 3 mai 08 à 23:45, Daniel Rampanelli a écrit :
Hi,
I was thinking wheter it is possible to create a sort of proxy
window which displays the content of another. Of course, the further
step would be to also pass events from the proxied window to the
source one. Is this even possible?
Le 4 mai 08 à 00:30, Jean-Daniel Dupas a écrit :
Le 3 mai 08 à 23:45, Daniel Rampanelli a écrit :
Hi,
I was thinking wheter it is possible to create a sort of proxy
window which displays the content of another. Of course, the
further step would be to also pass events from the proxied
I want to list all the running apps and their windows.
Running apps is easy with [ws launchedApplications] but I cant find a
way for listing their windows.
I have tried NSWindowList(win_count,arr_win) but then
[[NSApplication sharedApplication] windowWithWindowNumber:arr_win[i]]
in a bucle will
On 3 May 2008, at 02:43, Adam R. Maxwell wrote:
On May 2, 2008, at 12:18 PM, Ben wrote:
Re-sending as this did not seem to get make it to the list.
I have been reading the documentation for implementing the
NSFastEnumeration protocol and am having some difficulties
following it.
Thanks for the tip, but no go. It actually makes the behavior worse:
now the modal dialog is still drawn, but never becomes active (the
title bar never gets dark, and the previously visible (document)
window never deactivates, although the dialog is drawn on top), and
the default button
On May 3, 2008, at 3:52 PM, Jere Gmail wrote:
I want to list all the running apps and their windows.
Running apps is easy with [ws launchedApplications] but I cant find a
way for listing their windows.
I have tried NSWindowList(win_count,arr_win) but then
[[NSApplication sharedApplication]
Le 4 mai 08 à 01:09, Steve Christensen a écrit :
On May 3, 2008, at 3:52 PM, Jere Gmail wrote:
I want to list all the running apps and their windows.
Running apps is easy with [ws launchedApplications] but I cant find a
way for listing their windows.
I have tried
Am 03.05.2008 um 23:45 schrieb Daniel Rampanelli:
I was thinking wheter it is possible to create a sort of proxy
window which displays the content of another. Of course, the further
step would be to also pass events from the proxied window to the
source one. Is this even possible?
What
I'm new to (modern) Mac programming. There seem to be two major
show-stoppers to what I need to do, and I'd be grateful to be told how
to get around these seemingly impenetrable barriers. I posted a similar
question on the carbon-dev list and got some useful advice, and now I'm
asking the
On May 3, 2008, at 4:35 PM, Bruce Sherwood wrote:
We very much want a native-mode version of Visual.
If you want a native app, then don't fight the framework. Rolling
your own event system, and doing away with nib files is not a project
for someone new to the platform, and once you have
On May 3, 2008, at 9:55 PM, John C. Randolph wrote:
On May 3, 2008, at 4:35 PM, Bruce Sherwood wrote:
We very much want a native-mode version of Visual.
If you want a native app, then don't fight the framework. Rolling
your own event system, and doing away with nib files is not a
I couldn't agree more. But the issue is that I'm NOT building an
application. I'm trying to build a Python module, to be imported
dynamically by a running Python program. Here the app is Python, which
processes a script (program) written by a user, which at some point
imports the Visual
On 3 May '08, at 4:35 PM, Bruce Sherwood wrote:
Visual, which is written in multithreaded C++, can be imported
dynamically at any time in a Python program. Visual then has to
start up an event loop to make a window and process events.
Oh boy, this is a flashback. You've got the exact same
Thanks! I'm really glad to hear that this is a known problem, and that
there are solutions, even if it is pretty tricky stuff. Can you or
someone else point me to a sample piece of code that could get me started?
Indeed, the nib file (if there is one) would be right next to the Visual
module
On Sat, May 3, 2008 at 11:13 PM, Bruce Sherwood [EMAIL PROTECTED] wrote:
Indeed, the nib file (if there is one) would be right next to the Visual
module (in site-packages/visual). But initial reading of documentation, or
at least of examples, made it look like you say something like LoadNib,
On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke
[EMAIL PROTECTED] wrote:
Thanks for the tip, but no go. It actually makes the behavior worse: now
the modal dialog is still drawn, but never becomes active (the title bar
never gets dark, and the previously visible (document) window never
67 matches
Mail list logo