Re: Is this how you can use bindings?

2008-08-12 Thread Ron Lue-Sang
The way to think about this is, you bind the value of the text field to a controller (or model) object that owns the value. Then, bind the enabled binding of the button to the same property of of the same controller and use a valuetransformer to check whether the value is nil. So your setup

Re: Accessing memory of another application?

2008-08-12 Thread Jason Coco
On Aug 13, 2008, at 01:51 , Graham Cox wrote: On 13 Aug 2008, at 3:22 am, Josh wrote: You have to be able to do this - I have seen applications do it - you just have to type in your root password when you start the application. LOL, thanks for the light entertainment :) Basically like

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Quincey Morris
On Aug 12, 2008, at 22:52, Ken Ferry wrote: In general, you don't need to CFRetain an object to keep it alive while it's on the stack. The fact that it's on the stack is enough. If this wasn't true, there'd be a race, since the collector might destroy the object before you retained it. Unless

Re: DICOM images in Cocoa

2008-08-12 Thread Martin Carlberg
Try this: http://www.osirix-viewer.com/ 13 aug 2008 kl. 08.12 skrev Devraj Mukherjee: Hi all, My application requires to display DICOM image files. Preview doesn't support DICOM by nature so the thought at the moment is to use something like ImageMagick and convert these images to something JP

Is this how you can use bindings?

2008-08-12 Thread Chris Idou
I want a button to be enabled when myTextField is not empty. Can have an outlet in my controller called myTextField, and then set the "Enabled" binding on the button to point to myTextField.stringValue.length, then can I write a transformer called GreaterThanZero to return boolean if the input

DICOM images in Cocoa

2008-08-12 Thread Devraj Mukherjee
Hi all, My application requires to display DICOM image files. Preview doesn't support DICOM by nature so the thought at the moment is to use something like ImageMagick and convert these images to something JPEG on the fly? NSImage doesn't seem to be able to take a DICOM stream. Is this the best o

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Ken Ferry
On Tue, Aug 12, 2008 at 10:32 PM, Quincey Morris <[EMAIL PROTECTED]> wrote: > On Aug 12, 2008, at 21:22, Oleg Krupnov wrote: > >> Actually, I don't know how to "break on something". Would you please >> tell me? > > Open the Breakpoints window (Run | Show | Breakpoints). Double click where > it says

Re: Accessing memory of another application?

2008-08-12 Thread Graham Cox
On 13 Aug 2008, at 3:22 am, Josh wrote: You have to be able to do this - I have seen applications do it - you just have to type in your root password when you start the application. LOL, thanks for the light entertainment :) Basically like game trainers you see everywhere on windows - bu

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Ken Ferry
Hm. This is not going to be a great introduction to Mac OS X programming. :-) It turns out that CGPDFContentStream, CGPDFOperatorTable, and CGPDFScanner are not CFTypes. You cannot use any function intended for CFTypes with them, including CFRetain, CFRelease and CFMakeCollectable. You cannot p

Re: Subclassing NSTextView

2008-08-12 Thread Graham Cox
On 13 Aug 2008, at 11:15 am, John Joyce wrote: Too bad there is not an option for more subclass templates right in the GUI ... There is. Just create the files you want to use as templates and store them at: /Developer/Library/Xcode/Cocoa/.pbfiletemplate/ class. You also need a plist to

Re: Accessing memory of another application?

2008-08-12 Thread Michael Watson
So what game are you trying to cheat at? -- m-s On 12 Aug, 2008, at 14:09, Josh wrote: I'm not creating both applications - The application I'm trying to access was written by someone else and has no developer documentation (it's a game) My application should read the memory of the game

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Quincey Morris
On Aug 12, 2008, at 21:22, Oleg Krupnov wrote: Actually, I don't know how to "break on something". Would you please tell me? Open the Breakpoints window (Run | Show | Breakpoints). Double click where it says "Double-click for symbol" and type the symbol name you want to break on (auto_refc

Re: NSUserDefaultsController with defaults for another app

2008-08-12 Thread Ken Thomases
On Aug 12, 2008, at 11:11 PM, Keith Alperin wrote: My app ships as a System Preferences preference pane that contains a faceless agent app inside it's bundle. The agent app provides all of the functionality for my app. The prefpane stores preferences in the plist file for my app (rather th

NSTokenField drag and drop

2008-08-12 Thread Chris Idou
I've got two NSTokenFields. One is read-only as a palette for dragging and dropping to the other. I've implemented a "Token" class to distinguish between tokens and plain text (NSString). I can pass in arrays of mixed Tokens and NSStrings, and it all displays correctly in both fields. However,

Re: NSTypesetter layoutParagraphAtPoint:

2008-08-12 Thread Aki Inoue
You need to specify all essential glyph attributes for NSLayoutManager. In this case, you're not specifying the "not shown" attribute for the attachment. Attachment glyph should not be shown. Aki On 2008/08/12, at 19:54, chaitanya pandit wrote: Hello, Well i've been struggling with this f

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Oleg Krupnov
On Wed, Aug 13, 2008 at 6:56 AM, Ken Ferry <[EMAIL PROTECTED]> wrote: > What does the stack look like when you break on > auto_refcount_underflow_error? After you break, you can do "call > (void)CFShow()" with the number printed out in the > log message. That should hopefully give you the type of

NSUserDefaultsController with defaults for another app

2008-08-12 Thread Keith Alperin
Greetings Cocoa-devs! My app ships as a System Preferences preference pane that contains a faceless agent app inside it's bundle. The agent app provides all of the functionality for my app. The prefpane stores preferences in the plist file for my app (rather than that for the host System

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Ken Ferry
What does the stack look like when you break on auto_refcount_underflow_error? After you break, you can do "call (void)CFShow()" with the number printed out in the log message. That should hopefully give you the type of the object, which might help you determine where the issue is. What do you m

Re: Non-NSObject object and garbage collection

2008-08-12 Thread Oleg Krupnov
I have added a call to CFMakeCollectable each time after I create a CF object like this CFSomeTypeRef a = CFCreateSomeType(); if (a != nil) { CFMakeCollectable(a); } But I keep getting this runtime message in the console: malloc: reference count underflow for 0x10773c0, break on auto_refcount

Re: Should I retain a variable returned from this accessor?

2008-08-12 Thread Peter N Lewis
Clearly, there is a lot more going on in the code in this question than in typical Cocoa code. That said, if you want to avoid bugs, it would seem that the following is good advice: * Always use autorelease. * Use an Auto Release Pool if necessary (in loops, or with large memory allocations)

Core Data Bindings. weird behavior.

2008-08-12 Thread Sandro Noel
Greetings. I'm having a weird behavior with the bindings and core data. i'm sure it's the way the bindings are set that causes my problem but i can not find the answer. so i'll ask you guy's :) I have these entities, with these attributes and relationships. entity: Transactions attribu

NSTypesetter layoutParagraphAtPoint:

2008-08-12 Thread chaitanya pandit
Hello, Well i've been struggling with this for quite a while and would appreciate if anyone could point me in the right direction. I am trying to implement a custom NSTypesetter, to start with i just want to lay 2 characters, an "A" and an inline image, thats it. The character "A" gets drawn p

Core Data Versioning - more than two versions, how to map upgrades?

2008-08-12 Thread Graham Perks
I have model versions 1, 2, and 3, 3 being the latest. Obviously I need a mapping file to upgrade 2 -> 3. But for upgrades of v1, should the mapping file be 1 -> 3 direct, or 1 -> 2 and Core Data will do a two-step upgrade? The latter would be simplest, having Core Data automatically chain

Bindings Key Paths question

2008-08-12 Thread Jack Carbaugh
In my program, I download information for a "person" and stuff the items into an NSDictionary. Several of the "keys" are of this form: pictures.0.url How can I add this value to the bindings area of IB. I've tried surrounding with quotes and they are rejected. Thanks Jack _

Re: Accessing memory of another application?

2008-08-12 Thread Steve Byan
On Aug 12, 2008, at 12:04 PM, Josh wrote: I'm trying to get started w/viewing/editing/interacting with the memory of another running application but I'm not where to get started. You could think of this as being a simple "game trainer" - which basically allows you to view and edit values

Re: Should I retain a variable returned from this accessor?

2008-08-12 Thread Ken Thomases
On Aug 12, 2008, at 11:51 AM, Brian Stern wrote: On Aug 11, 2008, at 10:51 PM, Peter N Lewis wrote: [newTodo release] is not [newTodo autorelease]. So it may immediately call dealloc and dealloc the uid returned by by [newTodo uid]. To avoid this, you could do: Not really. This line:

Re: Archiving NSColor as NSData

2008-08-12 Thread Phil
On Wed, Aug 13, 2008 at 9:26 AM, Rein Hillmann <[EMAIL PROTECTED]> wrote: > colorAsData: <040b7374 7265616d 74797065 6481e803 84014084 8484074e 53436f6c > 6f720084 84084e53 4f626a65 63740085 84016301 8404 0101 000186> > > I suspect it's archiving other ivars in the color object. If so, is t

Re: Archiving NSColor as NSData

2008-08-12 Thread Shawn Erickson
On Tue, Aug 12, 2008 at 2:26 PM, Rein Hillmann <[EMAIL PROTECTED]> wrote: > Hi, > > Disclaimer: this is a question from a newbie. > > Could someone please explain why an NSColor yields so much data when > archived to NSData? > > For example, the following code: > > NSColor* color = [NSColor yellowC

RE: Subclassing NSTextView

2008-08-12 Thread John Joyce
Ooops, nevermind!! I answered my own question. When adding the class file to the project, start with the NSView subclass template, then change it to subclass NSTextView in the .h and in the .m either call [super drawRect:rect]; or comment out or delete the drawRect method all together. That w

Re: Archiving NSColor as NSData

2008-08-12 Thread Jim Correia
On Aug 12, 2008, at 5:26 PM, Rein Hillmann wrote: Could someone please explain why an NSColor yields so much data when archived to NSData? For example, the following code: NSColor* color = [NSColor yellowColor]; NSData* colorAsData = [NSArchiver archivedDataWithRootObject:color]; NSLog(@"col

Re: Accessing memory of another application?

2008-08-12 Thread mm w
Who liked to spit fire? :D as I said do not use mach primitives, I will not dive into details but it's one of worst advice you got here, spawn + run code into an exception handler do what you want with the result Cheers! On Tue, Aug 12, 2008 at 11:12 AM, Josh <[EMAIL PROTECTED]> wrote: > I've w

Re: Controlling line-breaking in a text view

2008-08-12 Thread Ken Ferry
Hi Andy, I'm still not familiar with the text system, so I don't know if the proxy was a good way to do this. But assuming it was, try implementing forwardingTargetForSelector: instead of forwardInvocation:. It's less flexible, but much faster, and your case doesn't require the flexibility. -Ken

Subclassing NSTextView

2008-08-12 Thread John Joyce
In Xcode 3.1, what is the minimum necessary to create a useable subclass of NSTextView ? (before adding/overriding methods) Additionally, in IB, is there any effective difference from using an NSTextView, selecting the text view within its scroll view and changing its class (in the inspector

Re: Controlling line-breaking in a text view

2008-08-12 Thread Andy Kim
Many thanks to everyone who helped in this thread. I wonder if this is a larger bug in the text system? I was going to suggest just inserting the Unicode character "zero-width no-break space" (U +FEFF) after the slash, but when I tried it (in TextEdit) I got the very phenomenon you describe

Re: Generate back trace programmatically?

2008-08-12 Thread Torsten Curdt
On Aug 13, 2008, at 01:34, Nick Zitzmann wrote: On Aug 12, 2008, at 5:28 PM, Joseph Kelly wrote: is there a known reliable way to generate a back trace from the current point in a given thread's call stack? Yes. (Hint: See the NSException documentation in Leopard, and the ExceptionHandl

Re: Accessing memory of another application?

2008-08-12 Thread Josh
I've worked with GDB before to debug some console applications on linux before (half-life gaming server) - but nothing very extensive. You know of any GUI tools? Also - thanks EVERYONE for your help - this has been very helpful - already checking out mach_star - looks very promising if I can find

Re: Accessing memory of another application?

2008-08-12 Thread Josh
I'm not creating both applications - The application I'm trying to access was written by someone else and has no developer documentation (it's a game) My application should read the memory of the game + change values/read offsets etc... Josh On Tue, Aug 12, 2008 at 2:07 PM, mm w <[EMAIL PROTECTE

Re: Accessing memory of another application?

2008-08-12 Thread Josh
Correct :-) I mean the last one And yes I'd like to change the outcome of the game - as well as send it commands to do different things - but I have a feeling sending commands to the game is easier than reading what is in it's memory :P Thanks again everyone! > On Tue, Aug 12, 2008 at 1:52 PM,

Re: Accessing memory of another application?

2008-08-12 Thread Josh
Hi Jean-Daniel, Thanks for the response - would you know how to go about determining what some of those public functions are? Unfortunately I'm looking to read the RAM from a game - so I guarantee those functions/memory offsets are not publicly disclosed. Or a way to randomly read offsets to det

Re: Accessing memory of another application?

2008-08-12 Thread Josh
haha no I'm not trying to make a virus :P I'm trying to build a program which will look @ the memory of a particular game, read some values, and perhaps change them :-) Basically like game trainers you see everywhere on windows - but I don't find a lot of them on os x. On Tue, Aug 12, 2008 at 1:

Re: Accessing memory of another application?

2008-08-12 Thread Josh
You have to be able to do this - I have seen applications do it - you just have to type in your root password when you start the application. On Tue, Aug 12, 2008 at 1:01 PM, Mike Abdullah <[EMAIL PROTECTED]>wrote: > You can't do this. Each application runs in its own *protected* memory. > On 12

Archiving NSColor as NSData

2008-08-12 Thread Rein Hillmann
Hi, Disclaimer: this is a question from a newbie. Could someone please explain why an NSColor yields so much data when archived to NSData? For example, the following code: NSColor* color = [NSColor yellowColor]; NSData* colorAsData = [NSArchiver archivedDataWithRootObject:color]; NSLog(@"co

Re: Generate back trace programmatically?

2008-08-12 Thread Jean-Daniel Dupas
Le 13 août 08 à 01:34, Nick Zitzmann a écrit : On Aug 12, 2008, at 5:28 PM, Joseph Kelly wrote: is there a known reliable way to generate a back trace from the current point in a given thread's call stack? Yes. (Hint: See the NSException documentation in Leopard, and the ExceptionHandl

Re: Opening an external file in a external application

2008-08-12 Thread Jason Stephenson
has wrote: ... and don't forget stuff like OpenOffice which contain full-blown spreadsheet engines and Excel file importers/exporters. I'll make a plug for OpenOffice.org here. The 3.0 release for Mac OS X is going to be completely Aqua native with the interface done in Cocoa. This work is a

Re: Generate back trace programmatically?

2008-08-12 Thread Nick Zitzmann
On Aug 12, 2008, at 5:28 PM, Joseph Kelly wrote: is there a known reliable way to generate a back trace from the current point in a given thread's call stack? Yes. (Hint: See the NSException documentation in Leopard, and the ExceptionHandling framework in Tiger and earlier.) Nick Zitzma

Cocoaheads Lake Forest will be an NSCoder-style get together at a DIFFERENT meeting place tomorrow

2008-08-12 Thread Scott Ellsworth
Hello, all, CocoaHeads Lake Forest will be meeting on the second Wednesday in August from 7 to 9 PM. Our usual meeting place has had a catastrophic a/c failure, and is apparently a steam bath. We will be meeting, at a DIFFERENT location: Panera Bread, 23592 Rockfield Boulevard, Lake Forest, CA 9

Generate back trace programmatically?

2008-08-12 Thread Joseph Kelly
Hello, is there a known reliable way to generate a back trace from the current point in a given thread's call stack? Like some kind of: +(NSString*)getCurrentStackTraceInCRDelimitedString; That would be pretty cool. Thanks in advance! Joe K. ___

Re: Opening an external file in a external application

2008-08-12 Thread Graham Cox
On 13 Aug 2008, at 4:10 am, John Love wrote: I don't have much hope of that .. so what I probably need to focus on is how to display the Excel spreadsheet in my document window. Any ideas will definitely be very appreciated. The good news (of sorts) is that MS recently published most of t

Re: Opening an external file in a external application

2008-08-12 Thread has
John Love wrote: I still need to figure out if it is possible for Excel to communicate back to my app via some sort of NSNotification. Very much doubt it, though you always can try Tildesoft's Notification Watcher just to be sure. Depending on the sort of operation it is that you're wanti

Re: Simple NSMutableDictionary problem

2008-08-12 Thread Gregory Weston
Matt Keyes wrote: How do I have an int as a value in a NSMutableDictionary object? By wrapping it in an NSNumber. It seems like (b/c the type is "id" for the first param) that NSMutableDictionary wants a pointer. Well, how do I give it just a plain integer copy without having the compile

Re: Cocoa-dev Digest, Vol 5, Issue 1446

2008-08-12 Thread John Michael Zorko
Pagtrick, >I have a number of projects that require communication with a server >using SOAP. Over the last couple of years I've been able to make this >work on Mac OS X by leveraging WebServicesCore API, wrapped in >Objective-C. > >Now I find myself having to deploy to a platform where no

Re: I don't understand why this is leaking...

2008-08-12 Thread Gerriet M. Denkmann
On 13 Aug 2008, at 00:05, Jason Coco wrote: On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The "Archives and Serializations Programming Guide for Cocoa" says: Keyed Archives ... Naming Values ... You should avoid us

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-12 Thread Shawn Erickson
On Tue, Aug 12, 2008 at 1:17 PM, Gustavo Vera <[EMAIL PROTECTED]> wrote: > What's the use of the Z_UUID in the Z_METADATA table? Likely a UUID ("Universally Unique Identifier"). > Is some kind of check sum or something like that? Not likely. > CoreData uses this value for something? Likely. >

Re: Simple NSMutableDictionary problem

2008-08-12 Thread Andy Lee
On Aug 12, 2008, at 5:12 PM, Matt Keyes wrote: Also, how do I define a non-mutable dictionary of a particular size? There is no dictionaryWithCapacity function that I can find in the non-mutable version. All the examples I can find are not practical (i.e. hardcoding a dictionary at its cre

[MEET] BYU CocoaHeads August 14th @ 7pm

2008-08-12 Thread Dave DeLong
Hi everyone, The BYU CocoaHeads in Provo, UT will be having their monthly meeting this Thursday (14 Aug) at 7:00 pm. We meet in room 1170 of the James E. Talmage building on BYU Campus. http://map.byu.edu/?building=tmcb We will be discussing the basics of the Foundation Framework and also the M

Re: Simple NSMutableDictionary problem

2008-08-12 Thread Mark Allan
At 9:12 pm + 12/08/2008, Matt Keyes wrote: How do I have an int as a value in a NSMutableDictionary object? for example: NSMutableDictionary *myDictionary = [NSMutableDictionary alloc]; int i = 1; [myDictionary setValue:1 forKey:@"One"]; This causes a compiler warning: "warning: passing

[Meet]: LA CocoaHeads Thursday August 14th, 7:30pm

2008-08-12 Thread Rob Ross
Howdy LA CocoaHeads. We will be meeting this Thursday, 8/14/08 at 7:30pm. We will be discussing our upcoming group study of Aaron Hillegass' book "Cocoa Programming for Mac OS X, 3rd Edition". I've had a lot of positive responses to my last email, so I think we'll be able to start this gro

Simple NSMutableDictionary problem

2008-08-12 Thread Matt Keyes
How do I have an int as a value in a NSMutableDictionary object? for example: NSMutableDictionary *myDictionary = [NSMutableDictionary alloc]; int i = 1; [myDictionary setValue:1 forKey:@"One"]; This causes a compiler warning: "warning: passing argument 1 of 'setValue:forKey:' makes pointer f

Re: Use of AppKit in command-line app on headless node

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 1:28 PM, Rick Hoge <[EMAIL PROTECTED]> wrote: > > > Thanks again for that very detailed post - I know it sounds like I'm being > lazy, but there are other parts of the app that would have to be redesigned > to allow the possibility for code use under headless conditions and

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-12 Thread Marcelo Alves
It is a implementation detail. You should not look inside the sqlite file. 2008/8/12 Gustavo Vera <[EMAIL PROTECTED]>: > What's the use of the Z_UUID in the Z_METADATA table? > Is some kind of check sum or something like that? > CoreData uses this value for something? > Why is this value differe

Cocoa and SOAP without WebServicesCore

2008-08-12 Thread patrick machielse
I have a number of projects that require communication with a server using SOAP. Over the last couple of years I've been able to make this work on Mac OS X by leveraging WebServicesCore API, wrapped in Objective-C. Now I find myself having to deploy to a platform where not even this feebl

Re: CGPDF - Setting /Rotation

2008-08-12 Thread Ken Ferry
Hi Pedro, Though people on this list will answer quartz questions if they know the answers, this is pretty deep CG. You may have better luck on the CoreGraphics list. -Ken On Sun, Aug 10, 2008 at 3:02 PM, Pedro Cuenca <[EMAIL PROTECTED]> wrot

Re: CGImage failed to write Exif Auxiliary metadata to image

2008-08-12 Thread Ken Ferry
Hi Rawitat, (1) You'll need to post your code for help on this. (2) This is probably more appropriate for the CoreGraphics list, . -Ken On Sun, Aug 10, 2008 at 7:00 AM, Rawitat Pulam <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having problems tryi

What's the use of the Z_UUID in the Z_METADATA table?

2008-08-12 Thread Gustavo Vera
What's the use of the Z_UUID in the Z_METADATA table? Is some kind of check sum or something like that? CoreData uses this value for something? Why is this value different every time the DB is regenerated? Is the generation of it a random-based one? Or is it based on random+"another thing"? Please

Re: NSTextField Bug? Can't be!

2008-08-12 Thread Seth Willits
It really does not have anything to do with resigning first responder. You can clearly ask for the string value while the text field is first responder and get the correct answer back. What's happening is plainly obvious, I just think it's a bug. (I filed a report. We'll see what happens

Re: Monospaced Simulated Braille

2008-08-12 Thread Douglas Davidson
On Aug 8, 2008, at 2:11 PM, James Jennings wrote: Override the character spacing of a font, or Override the definition of white space, or Override the word break algorithm. Overriding the spacing of a font is something that has been demonstrated at least once at WWDC, in the context of

Re: Should I retain a variable returned from this accessor?

2008-08-12 Thread Shawn Erickson
On Tue, Aug 12, 2008 at 2:12 AM, Negm-Awad Amin <[EMAIL PROTECTED]> wrote: > > BTW: You can do the same inside a getter to get rid of thread problems. Nope it does nothing to solve threading issues ([[blah retain] autorelease] isn't an atomic operation) you need to protect it with an critical sect

Re: Monospaced Simulated Braille

2008-08-12 Thread Steve Christensen
For the time being I suppose you could query the Braille font for its maximum character width, then draw each character in a string individually, centering it horizontally within a rectangle that has the maximum width. That would mean manually advancing each character's position on a line a

Re: Accessing memory of another application?

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 19:33 schrieb Jean-Daniel Dupas: In practice, it's perfectly possible to access other processes memory using public functions (it require some privileges since 10.4 intel). But to do it you have to use the low-level mach API and that's off topic here. This is exactly

Re: NSImage and zooming PDFs vs. bitmaps

2008-08-12 Thread Adam R. Maxwell
On Tuesday, August 12, 2008, at 11:09AM, "Ken Ferry" <[EMAIL PROTECTED]> wrote: >Okay, thanks Hamish. This area is getting some love for SnowLeopard. >I suspect that all these issues except for the one about opting not to >make large caches are already fixed. NSImage should be something that >(a

Re: Get specified window from nib

2008-08-12 Thread Jonathan Hess
On Aug 12, 2008, at 3:33 AM, Andy Lee wrote: On Aug 10, 2008, at 10:07 PM, Graham Perks wrote: On Aug 10, 2008, at 9:01 PM, Fosse wrote: I have one nib containing more than ten dialogs and want to get the specified window after nib is loading.. Perhaps NSNib's instantiateNibWithOwner:(id)o

I don't understand why this is leaking...

2008-08-12 Thread Klaus Backert
Am 12.08.2008 um 19:05 schrieb Jason Coco: On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The "Archives and Serializations Programming Guide for Cocoa" says: Keyed Archives ... Naming Values ... You should avoid using

Re: Opening an external file in a external application

2008-08-12 Thread John Love
On Aug 11, 08, at 2:28 PM, John Love wrote: I have a multiple document Cocoa app where I (try to) open an external file in whatever application the file belongs to -- in my case, an Excel spreadsheet in Excel. The new Cocoa document window shown keeps track of the calculation progress in

Re: NSImage and zooming PDFs vs. bitmaps

2008-08-12 Thread Ken Ferry
Okay, thanks Hamish. This area is getting some love for SnowLeopard. I suspect that all these issues except for the one about opting not to make large caches are already fixed. NSImage should be something that (a) does things you want, (b) does things you understand. As far as options, NSPDFImage

Re: Accessing memory of another application?

2008-08-12 Thread mm w
do not use mach primitives in your case On Tue, Aug 12, 2008 at 10:33 AM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > In practice, it's perfectly possible to access other processes memory using > public functions (it require some privileges since 10.4 intel). > But to do it you have to use t

Re: Accessing memory of another application?

2008-08-12 Thread mm w
If you 're developing the both application you can create a layer/IPC system via shm (shared memory) to communicate between your two apps, what you asked is really a newbie question regarding C programming, before trying cocoa and obj-c you should learn the base Cheers On Tue, Aug 12, 2008 at 9:

Re: How to get array of characters from NSString

2008-08-12 Thread Andy Lee
Count me as another Spolsky defender. On Aug 12, 2008, at 12:13 PM, Deborah Goldsmith wrote: On Aug 12, 2008, at 8:41 AM, Kyle Sluder wrote: http://www.joelonsoftware.com/articles/Unicode.html That article is missing several concepts which are essential for understanding Unicode; like many

Re: Accessing memory of another application?

2008-08-12 Thread Jean-Daniel Dupas
In practice, it's perfectly possible to access other processes memory using public functions (it require some privileges since 10.4 intel). But to do it you have to use the low-level mach API and that's off topic here. And no, code injection is not used only by virus. (see http://rentzsch.c

Re: Accessing memory of another application?

2008-08-12 Thread Clark Cox
On Tue, Aug 12, 2008 at 10:31 AM, Bill Cheeseman <[EMAIL PROTECTED]> wrote: > on 2008-08-12 12:04 PM, Josh at [EMAIL PROTECTED] wrote: > >> I'm trying to get started w/viewing/editing/interacting with the memory of >> another running application but I'm not where to get started. > > It isn't clear

Re: Accessing memory of another application?

2008-08-12 Thread Bill Cheeseman
on 2008-08-12 12:04 PM, Josh at [EMAIL PROTECTED] wrote: > I'm trying to get started w/viewing/editing/interacting with the memory of > another running application but I'm not where to get started. It isn't clear to me what you mean. When some people ask questions like this, what they really mea

Re: Use of AppKit in command-line app on headless node

2008-08-12 Thread Rick Hoge
Thanks again for that very detailed post - I know it sounds like I'm being lazy, but there are other parts of the app that would have to be redesigned to allow the possibility for code use under headless conditions and it's really important to me to know why this is necessary. What you

Re: Accessing memory of another application?

2008-08-12 Thread Sean McBride
On 8/12/08 12:04 PM, Josh said: >I'm trying to get started w/viewing/editing/interacting with the memory of >another running application but I'm not where to get started. You could >think of this as being a simple "game trainer" - which basically allows you >to view and edit values in memory. > >

Re: Accessing memory of another application?

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 19:01 schrieb Mike Abdullah: You can't do this. Each application runs in its own protected memory. Sometimes you can do this: http://en.wikipedia.org/wiki/Computer_virus ;-) Serious: There are techniques to get acccess to another application memory under some circumstanc

Re: Determine who ran an application

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 1:09 PM, GARRISON, TRAVIS J. <[EMAIL PROTECTED]> wrote: > I think that is whats needed. This is an application that will look up > the account in Active Directory and looks for a logon script. If the > logon script exists, then present a computer use agreement that the user

Re: I don't understand why this is leaking...

2008-08-12 Thread Jason Coco
On Aug 12, 2008, at 12:50 , Klaus Backert wrote: About $Null: It it were a reserved word, it would be documented so. The "Archives and Serializations Programming Guide for Cocoa" says: Keyed Archives ... Naming Values ... You should avoid using “$” as a prefix for your keys. The keyed

Re: Disc write speed options

2008-08-12 Thread Ed Wynne
On Aug 12, 2008, at 11:04 AM, Matthew Mashyna wrote: I'm trying to figure out how I can ask a DRDevice what burn speeds it's capable of so I can offer a choice to the user. When I call the status and info messages I don't see anything that looks useful. How can I get and set the burn rate

Re: Determine who ran an application

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 12:01 PM, GARRISON, TRAVIS J. <[EMAIL PROTECTED]> wrote: > I am new to Cocoa and Xcode, so please bear with me. I am editing an > existing application that we have. The application is set to run when > the user logs into the machine through a loginHook. We have to pass the >

Re: Determine who ran an application

2008-08-12 Thread Jason Coco
On Aug 12, 2008, at 12:01 , GARRISON, TRAVIS J. wrote: I am new to Cocoa and Xcode, so please bear with me. I am editing an existing application that we have. The application is set to run when the user logs into the machine through a loginHook. We have to pass the %USER% variable as an argu

Re: Accessing memory of another application?

2008-08-12 Thread Mike Abdullah
You can't do this. Each application runs in its own protected memory. On 12 Aug 2008, at 17:04, Josh wrote: All, I'm trying to get started w/viewing/editing/interacting with the memory of another running application but I'm not where to get started. You could think of this as being a simp

Re: I don't understand why this is leaking...

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 12:50 PM, Klaus Backert <[EMAIL PROTECTED]> wrote: > About $Null: > >> It it were a reserved word, it would be documented so. > > > The "Archives and Serializations Programming Guide for Cocoa" says: > > Keyed Archives > ... > Naming Values > ... > You should avoid using "$"

Re: I don't understand why this is leaking...

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 12:50 PM, Klaus Backert <[EMAIL PROTECTED]> wrote: > You should avoid using "$" as a prefix for your keys. The keyed archiver and > unarchiver use keys prefixed with "$" for internal values. Although they > test for and mangle user-defined keys that have a "$" prefix, this o

Re: How to get array of characters from NSString

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 12:13 PM, Deborah Goldsmith <[EMAIL PROTECTED]> wrote: > That article is missing several concepts which are essential for > understanding Unicode; like many programmers, Mr. Spolsky thinks of Unicode > as "wide ASCII", which it is not. The article doesn't cover surrogate pai

Re: Use of AppKit in command-line app on headless node

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 11:27 AM, Rick Hoge <[EMAIL PROTECTED]> wrote: > > Thanks for the replies - just got them now as my MobileMe email went offline > for some reason last night... > >>> I noticed that there is some useful info relating to this topic in the >>> documentation on Agents and Daemon

Re: How to get array of characters from NSString

2008-08-12 Thread Jim Puls
On Aug 12, 2008, at 9:13 AM, Deborah Goldsmith wrote: "The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)": http://www.joelonsoftware.com/articles/Unicode.html That article is missing several concepts which are essenti

Re: Disc write speed options

2008-08-12 Thread J. Todd Slack
Hi Matt, Ask this in the Disc-Recording List. http://lists.apple.com to subscribe. I can send you how I do it. -Jason On Aug 12, 2008, at 8:04 AM, Matthew Mashyna wrote: I'm trying to figure out how I can ask a DRDevice what burn speeds it's capable of so I can offer a choice to the u

Re: moving subviews

2008-08-12 Thread Quincey Morris
On Aug 12, 2008, at 00:49, Georg Seifert wrote: I have a big document view. On it I place some small subviews. I f I scroll the document view, the subviews should move with it but only till it reaches the edge of the visible area of the main view. e.g: if i move the main view down, and the

Re: Should I retain a variable returned from this accessor?

2008-08-12 Thread Brian Stern
On Aug 11, 2008, at 10:51 PM, Peter N Lewis wrote: I'm no Cocoa expert, but I think you're wrong on this, you've missed out a crucial line: At 3:12 PM -0400 11/8/08, Sean DeNigris wrote: // Get uid to return NSString* todoUid = [newTodo uid]; // Clean up [

I don't understand why this is leaking...

2008-08-12 Thread Klaus Backert
About $Null: It it were a reserved word, it would be documented so. The "Archives and Serializations Programming Guide for Cocoa" says: Keyed Archives ... Naming Values ... You should avoid using “$” as a prefix for your keys. The keyed archiver and unarchiver use keys prefixed with “$” fo

Accessing memory of another application?

2008-08-12 Thread Josh
All, I'm trying to get started w/viewing/editing/interacting with the memory of another running application but I'm not where to get started. You could think of this as being a simple "game trainer" - which basically allows you to view and edit values in memory. Can anyone point me to where I sh

Determine who ran an application

2008-08-12 Thread GARRISON, TRAVIS J.
I am new to Cocoa and Xcode, so please bear with me. I am editing an existing application that we have. The application is set to run when the user logs into the machine through a loginHook. We have to pass the %USER% variable as an argument. I would like to pull the username from directly in the a

  1   2   >