Re: How to create a GUID?

2008-09-08 Thread I. Savant
On Sep 7, 2008, at 10:44 PM, Adam R. Maxwell wrote: In addition to all the CFUUID solutions, there's also [[NSProcessInfo processInfo] globallyUniqueString]; a one-liner, but not thread safe. This, according to the documentation, "includes the host name, process ID, and a time stamp, wh

Re: What is a Delegate?

2008-09-08 Thread dreamcat7
Hi Often people see "delegate method" in the Cocoa documentation and believe they cant use those ones because it requires a special object that they dont have. However delegation is a very useful programming method. Usually another developer writes a library class that requires a delegate

NSTableView bindings and current selection

2008-09-08 Thread Jason Wiggins
Hello all, I have a tableView (showing query results) that has its values bound to an array controller; that works fine. I also have a NSPathControl showing the path of the selected item; this works fine too. I have implemented a right-click contextual menu to "Show in Finder..." the sele

Re: How to create a GUID?

2008-09-08 Thread Chris Suter
On Mon, Sep 8, 2008 at 8:28 PM, I. Savant <[EMAIL PROTECTED]> wrote: > On Sep 7, 2008, at 10:44 PM, Adam R. Maxwell wrote: > > In addition to all the CFUUID solutions, there's also [[NSProcessInfo >> processInfo] globallyUniqueString]; a one-liner, but not thread safe. >> > > This, according to

Re: User input while reading document

2008-09-08 Thread Kyle Sluder
On Mon, Sep 8, 2008 at 7:47 AM, Randy Widell <[EMAIL PROTECTED]> wrote: > If I am reading that right, it assumes that there is at least one window > already open (an empty document created when the app starts). The user > cannot create new documents; they can only edit existing documents. So, > i

Re: Using control:didFailToFormatString:errorDescription:

2008-09-08 Thread Matt Neuburg
On Mon, 8 Sep 2008 11:23:30 +1000, Rohan Lloyd <[EMAIL PROTECTED]> said: >I don't like the vague "Format Error" and want to display my own >message, so I've written my own >control:didFailToFormatString:errorDescription: method (In my >NSWindowController subclass), and set the text field delegate t

Re: How to create a GUID?

2008-09-08 Thread Sean McBride
On 9/6/08 7:51 PM, Clark Cox said: >The original works with both GC and non-GC, while the version with >autorelease will leak under GC (because the string is never >CFRelease'd). In order to work with both runtimes, either use the >original, or do this: > >- (NSString *)uuid >{ > CFUUIDRef uui

NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Ellen Chou
I have a tree view window that uses NSTableView and NSOutlineView lists out all the sub folders under user's home directory. For some reason, this window shows the folder contents correctly in Mac OS 10.5.2, but not in Mac OS 10.4.x running on iMac which is PowerPC host running on Intel Duel Core

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2008-09-08 Thread Adam Strzelecki
Don't want to hammer here too much, but I just want to have any feedback from Apple if this problem is known and if there's any chance to get it fixed. I've already send some more details to Douglas Davidson month ago that provides here great support I see, but after that I haven't got any

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Stéphane Sudre
On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote: I have a tree view window that uses NSTableView and NSOutlineView lists out all the sub folders under user's home directory. For some reason, this window shows the folder contents correctly in Mac OS 10.5.2, but not in Mac OS 10.4.x running o

Crash in DRBurnSetupPanel

2008-09-08 Thread David
I'm sometimes getting a crash in DRBurnSetupPanel. Its when the panel is starting up and a device is loading media. Does anyone know if there's a workaround? Could I be doing something to cause this? Here's a back trace #0 0x90ed46e8 in objc_msgSend () #1 0x00175701 in NotificationCallback ()

Connecting Menu across Nib

2008-09-08 Thread sheen mac
Hi All, In my app, I have 4 Nib files.In the MainMenu.nib have password asking window and menus. After the password check I loaded another Nib. This Nib has no menu. The MainMenu's menu still in menu bar. But the shortcut keys not working (Preferences and quit ) . This working with MainMenu.Nib

Re: Connecting Menu across Nib

2008-09-08 Thread Charles Steinman
--- On Mon, 9/8/08, sheen mac <[EMAIL PROTECTED]> wrote: > In my app, I have 4 Nib files.In the MainMenu.nib have > password > asking window and menus. After the password check I loaded > another > Nib. This Nib has no menu. The MainMenu's menu still in > menu bar. > But the shortcut keys not wo

SSCrypto to PHP

2008-09-08 Thread Walter Johnson
Greetings, I need help with encrypting data to send to a php script to be decrypted. I stumbled across the SSCrypto framework and I've been using it to encrypt and decrypt a simple NSString. However, when I attempt to plug this into my php script, it only outputs gibberish. Can someone give me a

Re: NSTableView bindings and current selection

2008-09-08 Thread Benjamin Stiglitz
I have a tableView (showing query results) that has its values bound to an array controller; that works fine. I also have a NSPathControl showing the path of the selected item; this works fine too. I have implemented a right-click contextual menu to "Show in Finder..." the selected item in

Re: NSTableView bindings and current selection

2008-09-08 Thread Corbin Dunn
On Sep 8, 2008, at 3:30 AM, Jason Wiggins wrote: Hello all, I have a tableView (showing query results) that has its values bound to an array controller; that works fine. I also have a NSPathControl showing the path of the selected item; this works fine too. I have implemented a right-click

How do create a DMG with license agreement?

2008-09-08 Thread David
Hello, I've seen many applications present a license agreement before their DMG can be mounted. I read in the "Software Delivery Guide" about a SLA for UDIF SDK. So I got the SDK. But its dated from 2003. Within its documentation it says you need to use ResEdit and gives a location of http://downlo

Re: How do create a DMG with license agreement?

2008-09-08 Thread Dave Carrigan
On Sep 8, 2008, at 1:41 PM, David wrote: Am I looking in the right place on how to add a license agreement to a DMG? You're looking in the right place, but IMHO, you're better off just forking over $20 for DropDMG, which does it all for you. -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA

NSCharacterSet :+ (id)newlineCharacterSet

2008-09-08 Thread Filip van der Meeren
Hello, I have the most puzzling question: The documentation of XCode for NSCharacterSet includes the following: newlineCharacterSet Returns a character set containing the newline characters. + (id)newlineCharacterSet Return Value A character set containing the newline characters (U+000A–U+000

Re: NSCharacterSet :+ (id)newlineCharacterSet

2008-09-08 Thread Aki Inoue
The method was added to 10.5. So, if your project is not targeting 10.5 and later, you get the warning. Aki On 2008/09/08, at 13:57, Filip van der Meeren wrote: Hello, I have the most puzzling question: The documentation of XCode for NSCharacterSet includes the following: newlineCharact

Re: NSCharacterSet :+ (id)newlineCharacterSet

2008-09-08 Thread Kyle Sluder
On Mon, Sep 8, 2008 at 4:57 PM, Filip van der Meeren <[EMAIL PROTECTED]> wrote: > But when I try to invoke this method I get the following: > warning: 'NSCharacterSet' may not respond to '+newlineCharacterSet' Is your deployment target set to 10.5? Are you using the right SDK? > And when I check

Re: NSCharacterSet :+ (id)newlineCharacterSet

2008-09-08 Thread Bill Cheeseman
on 2008-09-08 4:57 PM, Filip van der Meeren at [EMAIL PROTECTED] wrote: > And when I check the actual header file, the "+ > (id)newlineCharacterSet" declaration isn't to be found... > > Is this a mistake on my side or Apples? On my 10.5.4 system, this appears in the NSCharacterSet.h header: #if

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Ellen Chou
Hi Stephane, Indeed, reloadData is not called at all. But why can it work fine in 10.5.2? When and where I should call reloadData? Thanks, Ellen On Mon, Sep 8, 2008 at 9:52 AM, Stéphane Sudre <[EMAIL PROTECTED]> wrote: > > On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote: > > I have a tree view

Re: text view example

2008-09-08 Thread Douglas Davidson
On Sep 6, 2008, at 4:10 AM, Roland Silver wrote: Can anyone point me to a Cocoa app or tutorial or example whose code I can adapt which has a window with a scrollable text view into which I can post text? Try /Developer/Examples/AppKit/TextSizingExample for starters. Douglas Davidson ___

Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Jerry Krinock
My app works fine on an Intel Mac running 10.5, and on my old 800 MHz Powerbook G4 running 10.4.11. But after the latest update I received complaints from two users with G3 processors. Upon investigation, it turns out that the message -[NSBundle classNamed:] logs an error [1] and retu

Re: Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Nick Zitzmann
On Sep 8, 2008, at 4:05 PM, Jerry Krinock wrote: *** -[NSBundle load]: Error loading code /Applications/MyApp.app/Contents/Resources/ BmTiger.bundle/Contents/MacOS/BmTiger for bundle /Applications/MyApp.app/Contents/Resources/BmTiger.bundle, error code 4 (link edit error code 4, err

Re: How do create a DMG with license agreement?

2008-09-08 Thread Seth Willits
On Sep 8, 2008, at 1:47 PM, Dave Carrigan wrote: Am I looking in the right place on how to add a license agreement to a DMG? You're looking in the right place, but IMHO, you're better off just forking over $20 for DropDMG, which does it all for you. http://www.araelium.com/dmgcanvas/ --

Re: NSTableView works in 10.5 but not in 10.4

2008-09-08 Thread Corbin Dunn
On Sep 8, 2008, at 2:36 PM, Ellen Chou wrote: Hi Stephane, Indeed, reloadData is not called at all. But why can it work fine in 10.5.2? When and where I should call reloadData? That's easy; after you change your model. When do you initialize your arrays, etc? After that point, call relo

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2008-09-08 Thread Kyle Sluder
2008/9/8 Adam Strzelecki <[EMAIL PROTECTED]>: > Don't want to hammer here too much, but I just want to have any feedback > from Apple if this problem is known and if there's any chance to get it > fixed. If you want a response from Apple, file a bug report at bugreport.apple.com. Otherwise, there

Crash in NSOpenPanel. Garbage collection thread

2008-09-08 Thread David
I've found other reports of NSOpenPanel crashing with garbage collection, but I haven't found a workaround. Does anyone know what scenarios cause this? It appears random or timing dependent, but is a serious issue. It happens in my application sometimes frequently, sometimes not. With this curren

Re: NSRunLoop run semantics

2008-09-08 Thread Chris Kane
On Sep 7, 2008, at 9:33, Roman Kishchenko wrote: Hi, I am new to Cocoa and have been experimenting with NSRunLoop. I would appreciate clarification about 'run' method semantics. The documentation states that: "If no input sources or timers are attached to the run loop, this method exits im

Re: How do create a DMG with license agreement?

2008-09-08 Thread David
Is it just me or should an Apple operating system facility have a public API rather than apparently a non-published API? Are there many things in the Mac world with unpublished APIs where you have to rely on 3rd party tools to access operating system functions? Or is the DMG format unique because

Re: How do create a DMG with license agreement?

2008-09-08 Thread Seth Willits
On Sep 8, 2008, at 5:22 PM, David wrote: Is it just me or should an Apple operating system facility have a public API rather than apparently a non-published API? Are there many things in the Mac world with unpublished APIs where you have to rely on 3rd party tools to access operating system fun

Re: Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Jerry Krinock
On 2008 Sep, 08, at 15:14, Nick Zitzmann wrote: What is the output of "lipo -info {path to the app contents folder}/ Frameworks/SSSQLiter.framework/SSSQLiter"? Thanks for reading, Nick. The answer is: Architectures in the fat file: /Users/jk/Documents/Programming/Builds/ Release/Bookdog.ap

Re: Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Shawn Erickson
On Mon, Sep 8, 2008 at 5:30 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > Looks like I better go find out if ppc7400 == {G3,G4} or only {G4}, which > would explain the problem. PowerPC 7400 is targeting G4 or G5 processors only. What target SDK and target OS is the project configured for? IIRC

Re: Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Andrew Farmer
On 08 Sep 08, at 17:30, Jerry Krinock wrote: On 2008 Sep, 08, at 15:14, Nick Zitzmann wrote: What is the output of "lipo -info {path to the app contents folder}/ Frameworks/SSSQLiter.framework/SSSQLiter"? Thanks for reading, Nick. The answer is: Architectures in the fat file: /Users/jk/Docum

Re: NSTableView bindings and current selection

2008-09-08 Thread Jason Wiggins
On 09/09/2008, at 06:19 , Corbin Dunn wrote: On Sep 8, 2008, at 3:30 AM, Jason Wiggins wrote: Hello all, I have a tableView (showing query results) that has its values bound to an array controller; that works fine. I also have a NSPathControl showing the path of the selected item; this wor

Re: Bundle Load Fails for Users with G3 Processors Only

2008-09-08 Thread Jerry Krinock
On 2008 Sep, 08, at 17:52, Shawn Erickson wrote: On Mon, Sep 8, 2008 at 5:30 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: Looks like I better go find out if ppc7400 == {G3,G4} or only {G4}, which would explain the problem. PowerPC 7400 is targeting G4 or G5 processors only. Yup. What

Re: How do create a DMG with license agreement?

2008-09-08 Thread David Melgar
Great! Can you give me a hint where to look for documentation on the API? I've looked and couldn't find it. Thanks Sent from my iPhone On Sep 8, 2008, at 8:29 PM, Seth Willits <[EMAIL PROTECTED]> wrote: On Sep 8, 2008, at 5:22 PM, David wrote: Is it just me or should an Apple operating

Finding out in code how much memory my application uses

2008-09-08 Thread Aaron VonderHaar
Hi, I am trying to write some automated scenario tests that verify that my application meets it's the memory usage constraint requirements. What API is available to find out how much memory an application/process/thread has allocated? I have looked at the documentation for NSZone, NSProcessInfo,

Re: Finding out in code how much memory my application uses

2008-09-08 Thread Jason Coco
I would suggest using the DTrace stuff... either using instruments or using DTrace scripts directly... there is tons of good information about DTrace at google. You can also look at /usr/include/mach directory for various mach calls regarding process statistics, including memory usage (all

Re: Using control:didFailToFormatString:errorDescription:

2008-09-08 Thread Rohan Lloyd
On 9 Sep 2008, at 12:48 AM, Matt Neuburg wrote: On Mon, 8 Sep 2008 11:23:30 +1000, Rohan Lloyd [EMAIL PROTECTED]> said: I don't like the vague "Format Error" and want to display my own message, so I've written my own control:didFailToFormatString:errorDescription: method (In my NSWindowControll

While we're on the subject of DMG's for software distribution...

2008-09-08 Thread Chris Markle
Hi Folks, (Not super saavy about Mac OS X here so bear with me please...) On the subject of DMG's... I inherited a software product that currently ships using some moldy-oldy version of the Wise installer. I think basically all it does is put the application _folder_ into the Applications folder.

Re: While we're on the subject of DMG's for software distribution...

2008-09-08 Thread David
I'm certainly no expert but... Application bundles are just directories which some special characteristics that makes Finder hide the fact that its a directory to make it look like an application. Finder just looks at any directory that ends in .app and thinks its an application. It then looks insi

Re: How do create a DMG with license agreement?

2008-09-08 Thread Markus Spoettl
On Sep 8, 2008, at 6:02 PM, David Melgar wrote: Great! Can you give me a hint where to look for documentation on the API? I've looked and couldn't find it. Yes here: http://developer.apple.com/sdk/ Look for: Software License Agreements for UDIFs (DMG), it says: Mac OS X's Disk Copy has the

Re: SSCrypto to PHP

2008-09-08 Thread Jerry Krinock
Hello Walter, Since your message has been languishing for over 8 hours now I figured that my two cents might be better than nothing. I spent a few minutes reading your code but got too confused. Example: NSString *password = secretMessage; Seems weird to set your password equal to the

Re: While we're on the subject of DMG's for software distribution...

2008-09-08 Thread Seth Willits
On Sep 8, 2008, at 8:31 PM, Chris Markle wrote: I'd prefer to ship this as a DMG... But if I understand DMG-based delivery correctly, the idea is that Mac users are used to this and "know" to copy the application bundle to the Applications folder. But I need the user to copy the application fold

Re: How to create a GUID?

2008-09-08 Thread Phil
On Tue, Sep 9, 2008 at 12:13 AM, Chris Suter <[EMAIL PROTECTED]> wrote: > On Leopard (and possibly earlier–I haven't checked), it appears that the > string returned is actually a UUID created with the CFUUID functions > concatenated with the process ID and the result of mach_absolute_time() so > th

Re: While we're on the subject of DMG's for software distribution...

2008-09-08 Thread Peter N Lewis
At 20:31 -0700 8/9/08, Chris Markle wrote: In the application folder I am referring to is the application bundle, some PDFs (doc) and a Plugins folder with one plugin bundle in it. I think the application expects the plugins to be in this specific place i.e., the Plugins folder in the application

Re: While we're on the subject of DMG's for software distribution...

2008-09-08 Thread Kyle Sluder
On Tue, Sep 9, 2008 at 1:34 AM, Peter N Lewis <[EMAIL PROTECTED]> wrote: > 1 Put the PDFs in the Resources folder in the app, and add Help menu entries > to display them. Pro Tools does this. It's incredibly frustrating to have to launch the app just to get at the documentation. I happen to know