Creating popup window/panel

2008-08-12 Thread Devraj Mukherjee
Hi all, I am trying to create a window that pops up from the toolbar (like say the project selection window in Pages or the window that pops up if you drag an existing source file onto XCode). I am trying design a UI so the user doesn't have to bring up a separate window. Is this done using a nor

Re: Creating popup window/panel

2008-08-12 Thread Markus Spoettl
On Aug 12, 2008, at 12:01 AM, Devraj Mukherjee wrote: I am trying to create a window that pops up from the toolbar (like say the project selection window in Pages or the window that pops up if you drag an existing source file onto XCode). I am trying design a UI so the user doesn't have to bring

moving subviews

2008-08-12 Thread Georg Seifert
Hello, 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 subview hits the scrollbar, it should s

Re: moving subviews

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 09:49 schrieb Georg Seifert: down, and the subview hits the scrollbar, it should stick there. is there a sane way of achieving this or do I better lock for an other behavior? You can overwrite the origin-changing methods -setFrame: and - setFrameOrigin: of your document

Re: NSTextField Bug? Can't be!

2008-08-12 Thread Seth Willits
Right. I figure though that asking for stringValue grabs the text from the field editor, so why doesn't setEnabled do the same to commit current editing? Seems logical to me. I can't imagine a situation where you'd want text the user typed into a field to be ignored after they already typ

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

2008-08-12 Thread Gerriet M. Denkmann
On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd <[EMAIL PROTECTED]>wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSMutableString stringWithString:@"~/Library/Preferences/MyA

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

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann: On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd <[EMAIL PROTECTED] >wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: This code is leaking: - (void)saveItemExtensions:(id)sender { NSMutableString* itemExtensionsFilePath = [NSM

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

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 04:51 schrieb Peter N Lewis: At 4:48 PM -0400 11/8/08, Kyle Sluder wrote: On Mon, Aug 11, 2008 at 3:12 PM, Sean DeNigris <[EMAIL PROTECTED]> wrote: Hi, how do I handle memory management for todoUid below? Do I have to retain or autorelease it? [...snip...] //

Re: Get specified window from nib

2008-08-12 Thread Fosse
Thanks!.. I tried and it can get all objects.. But It's strange that I don't find APIs of NSWindow to get its name which is shown in the Interfact Builder.. Those objects have different name in the IB and I want to get one specific window from the top object array... Is there other methods to get

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

2008-08-12 Thread Graham Cox
On 12 Aug 2008, at 6:42 pm, Gerriet M. Denkmann wrote: 2. NSKeyedArchiver can only store certain strings (tested in 10.4.11), which makes it absolutely unusable for the storage of strings if the possible values are not known in advance. Eh? That's just not true. Can you provide an example

Re: Get specified window from nib

2008-08-12 Thread Graham Cox
On 12 Aug 2008, at 8:15 pm, Fosse wrote: But It's strange that I don't find APIs of NSWindow to get its name which is shown in the Interfact Builder.. Those objects have different name in the IB and I want to get one specific window from the top object array... Is there other methods to

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

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 15:50, Negm-Awad Amin wrote: Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann: On 9 Aug 2008, at 17:39:20 -0600, Jonathan deWerd <[EMAIL PROTECTED]>wrote: On Aug 9, 2008, at 4:48 PM, Cate Tony wrote: [...] Also, why are you using non-keyed encoding? -encodeObjec

Re: Get specified window from nib

2008-08-12 Thread Andy Lee
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)owner topLevelObjects: (NSArray **)topLevelObjec

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

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 17:19, Graham Cox wrote: On 12 Aug 2008, at 6:42 pm, Gerriet M. Denkmann wrote: 2. NSKeyedArchiver can only store certain strings (tested in 10.4.11), which makes it absolutely unusable for the storage of strings if the possible values are not known in advance. Eh? T

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

2008-08-12 Thread Graham Cox
On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: I'm sure if it weren't someone would have raised merry hell about it before now. Something's fishy... Reminds of a very rational being walking the streets with his son. The son: "Hey dad, there's a hundred dollar note!" Dad: "No son, th

Re: NSTextField Bug? Can't be!

2008-08-12 Thread [EMAIL PROTECTED]
Seems to me that this might be more to do with the responder chain. The NSTextField will update its stringValue when it resigns as first responder. An NSButton does not accept first responder status so the NSTextField never gets to resign first responder status. If you are using NSViewControll

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

2008-08-12 Thread Negm-Awad Amin
Probably $null is a reserved word. -encodeWithCoder: (NSString) and - initWithCoder: (NSString) should escape that. No good … Amin Am Di,12.08.2008 um 12:25 schrieb Gerriet M. Denkmann: On 12 Aug 2008, at 15:50, Negm-Awad Amin wrote: Am Di,12.08.2008 um 10:42 schrieb Gerriet M. Denkmann:

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

2008-08-12 Thread Phil
On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > Yes, I have. > > 1. Simple Test: > In IB create new window, add NSTextField with content "$null" (without the > quotes) save in 10.2 or later format. Close. Open again. Look at your > string. > [...] > Maybe this wil

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

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 18:26, Negm-Awad Amin wrote: Probably $null is a reserved word. -encodeWithCoder: (NSString) and -initWithCoder: (NSString) should escape that. No good … Wenn es das wäre, dann hätte man das sicherlich documentiert. (This as a challenge for our English-speaking (or should

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

2008-08-12 Thread Gerriet M. Denkmann
On 12 Aug 2008, at 18:05, Graham Cox wrote: On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: I'm sure if it weren't someone would have raised merry hell about it before now. Something's fishy... Reminds of a very rational being walking the streets with his son. The son: "Hey dad, t

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

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 14:11 schrieb Gerriet M. Denkmann: On 12 Aug 2008, at 18:26, Negm-Awad Amin wrote: Probably $null is a reserved word. -encodeWithCoder: (NSString) and -initWithCoder: (NSString) should escape that. No good … Wenn es das wäre, dann hätte man das sicherlich documentiert.

Create a calendar group using CalendarStore framework

2008-08-12 Thread Alain Schartz
Hello List, Does anyone know if it is possible to programmatically create a group of calendars in the OS X calendar store ("File / New Calendar Group" in iCal) using the CalendarStore framework? I did not find any reference to groups in the documentation. After manually creating a calendar gro

Re: Create a calendar group using CalendarStore framework

2008-08-12 Thread Negm-Awad Amin
Referring to the calendar store objects figure the groups seem to be entities of iCal. Of course you can do scripting. Worth? Amin Am Di,12.08.2008 um 14:18 schrieb Alain Schartz: Hello List, Does anyone know if it is possible to programmatically create a group of calendars in the OS X ca

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

2008-08-12 Thread Sean DeNigris
Hi, how do I handle memory management for todoUid below? Do I have to retain or autorelease it? [...snip...] // Get uid to return NSString* todoUid = [newTodo uid]; [...snip...] return todoUid; } you could do: NSString* todoUid = [[[newTodo uid] retain] autorelease]; Y

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

2008-08-12 Thread Negm-Awad Amin
Am Di,12.08.2008 um 14:37 schrieb Sean DeNigris: Hi, how do I handle memory management for todoUid below? Do I have to retain or autorelease it? [...snip...] // Get uid to return NSString* todoUid = [newTodo uid]; [...snip...] return todoUid; } you could do: NSString* t

Re: NSImage and zooming PDFs vs. bitmaps

2008-08-12 Thread Hamish Sanderson
On 11 Aug 2008, at 17:52, Ken Ferry wrote: A combination of -setDataRetained: on image loading and -recache on zooming did the trick, although I did need to kludge in a size check before calling -recache as rasterising an entire PDF above ~10,000x10,000 quickly gets painful performance- and

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

2008-08-12 Thread Adam R. Maxwell
On Aug 12, 2008, at 4:49 AM, Phil wrote: On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: Yes, I have. 1. Simple Test: In IB create new window, add NSTextField with content "$null" (without the quotes) save in 10.2 or later format. Close. Open again. Look at

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

2008-08-12 Thread Kyle Sluder
On Mon, Aug 11, 2008 at 10:51 PM, Peter N Lewis <[EMAIL PROTECTED]> wrote: > [newTodo release] is not [newTodo autorelease]. So it may immediately call > dealloc and dealloc the uid returned by by [newTodo uid]. You're right about this; I did miss the -release. --Kyle Sluder

Re: Tidying NSURLs Containing XML

2008-08-12 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 1:45 AM, Mike <[EMAIL PROTECTED]> wrote: > I think what I want is -stringByAddingPercentEscapesUsingEncoding: That is the exact method that Ken referred to. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

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

2008-08-12 Thread Jason Coco
On Aug 12, 2008, at 07:49 , Phil wrote: On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: Yes, I have. 1. Simple Test: In IB create new window, add NSTextField with content "$null" (without the quotes) save in 10.2 or later format. Close. Open again. Look at

Re: Thread deadlock?

2008-08-12 Thread Scott Ribe
> In the middle of the thread processing, I need to do some processing on a > downloaded file. The file may be in the middle of being downloaded, so I > need to possibly block until it is ready, then have the main thread do some > work, and return to the thread. Which thread is doing the download?

Re: best graphics API for 2D game

2008-08-12 Thread steph thirion
On Aug 12, 2008, at 5:18 AM, Seth Willits wrote: On Aug 11, 2008, at 6:23 PM, steph thirion wrote: I'm new to cocoa, and I'd need a pointer to get started learning and experimenting. What would be the most adequate graphics cocoa API to render a 2D game? core graphics or opengl? The requi

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

2008-08-12 Thread Rick Hoge
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 Daemons at http://developer.apple.com/technotes/tn2005/tn2083.html#SECLIVINGDANGERO

Re: Hillegass' chapter #11: Core Data

2008-08-12 Thread David Owens II
In your cars controller you have the content hooked up which shouldn't be. After you disconnect that binding your document window will display. -David On Aug 10, 2008, at 12:50 PM, Niklas Saers wrote: Hi all, I'm going through Hillegass' book 3rd edition, and I've come to the chapter I'm m

Re: How to get array of characters from NSString

2008-08-12 Thread Kyle Sluder
On Mon, Aug 11, 2008 at 9:30 PM, Deborah Goldsmith <[EMAIL PROTECTED]> wrote: > Anyone who is considering writing code that looks through the contents of an > NSString (as opposed to just treating the whole string as a unit) needs to > learn the basics of processing Unicode. Joel Spolsky has a gre

Re: Problem with friend function and gcc 4.2 with

2008-08-12 Thread Ken Worley
On Aug 11, 2008, at 6:18 PM, Jonathan Prescott wrote: Operator signatures are already know by the compiler since they are defined in the standard, and are really global in scope. Thus, you don't have to declare them prior to defining them. Huh? The operator I added as a test was certainl

Re: How to get array of characters from NSString

2008-08-12 Thread Deborah Goldsmith
On Aug 12, 2008, at 8:41 AM, Kyle Sluder wrote: On Mon, Aug 11, 2008 at 9:30 PM, Deborah Goldsmith <[EMAIL PROTECTED]> wrote: Anyone who is considering writing code that looks through the contents of an NSString (as opposed to just treating the whole string as a unit) needs to learn the bas

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

2008-08-12 Thread Michael Ash
On Tue, Aug 12, 2008 at 7:05 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > > On 12 Aug 2008, at 8:40 pm, Gerriet M. Denkmann wrote: >>> >>> I'm sure if it weren't someone would have raised merry hell about it >>> before now. Something's fishy... >> >> Reminds of a very rational being walking the stre

Disc write speed options

2008-08-12 Thread Matthew Mashyna
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 ? Thanks, Matt __

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

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

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

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 [

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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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 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: 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 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: 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: 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: 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

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: 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

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: 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: 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: 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 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: 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

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: 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

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

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: 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

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

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

[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

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] 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 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

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: 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: 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: 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: 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: 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

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. ___

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

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

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 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

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: 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

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:

  1   2   >