Re: Cocoa Sounds

2009-11-10 Thread Chunk 1978
i have a launch sound of silence already implemented in my code, but it doesn't always work for some reason. On Wed, Nov 11, 2009 at 2:39 AM, Mark Gallegly wrote: > That's a good idea. Someone should of suggested that before. > > On Nov 10, 2009 11:36 PM, "mlist0...@gmail.com" > wrote: > > What

Re: Cocoa Sounds

2009-11-10 Thread Mark Gallegly
That's a good idea. Someone should of suggested that before. On Nov 10, 2009 11:36 PM, "mlist0...@gmail.com" wrote: What I've done in the past is to simply play a silent sound before I actually need to play a sound for real. This "primes the pump". _murat On Nov 9, 2009, at 11:40 AM, lbland wr

Re: Cocoa Sounds

2009-11-10 Thread mlist0...@gmail.com
What I've done in the past is to simply play a silent sound before I actually need to play a sound for real. This "primes the pump". _murat On Nov 9, 2009, at 11:40 AM, lbland wrote: > hi- > > On Nov 9, 2009, at 12:58 PM, Chunk 1978 wrote: > >> one thing i've always had an issue with is soun

Re: Custom borderless window not getting it's shadow

2009-11-10 Thread Ken Tozier
I tried it both with content and without. Same result. Seems like of twitchy because I could have sworn that when I fort wrote the window a couple of days ago, it did have a shadow, matter of fact, I'm certain of it. Doesn't seem to have any effect progressively commenting out all the custo

Re: View swap using "push" animation

2009-11-10 Thread Martin Hewitson
I ended up doing exactly this in the last couple of days but I used NSAnimation. I don't see any performance problems. I have two views which are subviews of a main view. The main view is sized so that only one subview is visible (which means you have to take care of the subview sizes if th

Cocoaheads Lake Forest (92630) meeting Wednesday, 11/10 at the Corner Bakery at the Irvine Spectrum

2009-11-10 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We are being hosted by the local NSCoders at the Corner Bakery at the Irvine Spectrum Please join us from 7pm to 9pm on Wednesday, 11/11. Bring your laptop and join the local NSCoders for an evening coding frenzy. Than

Re: NSArrayController question [Solved]

2009-11-10 Thread Mark Smith
That's actually what I thought the answer should be when I saw your original question, but really didn't know how to articulate it as I'm new to cocoa programming myself. Get some sleep. :-) Best Regards, Mark Smith Sent from my iPhone On Nov 10, 2009, at 11:26 PM, Oftenwrong Soong > wrote

Re: Cocoa Sounds

2009-11-10 Thread lbland
hi- On Nov 9, 2009, at 12:58 PM, Chunk 1978 wrote: one thing i've always had an issue with is sound lag, which always (yet only) happens during a first sound. after the initial lag, sounds will play on time. at first i though it was my code, but recently i've noticed that it happens in Calcul

Re: avoiding spagetti code

2009-11-10 Thread Erik Price
On Mon, Nov 9, 2009 at 5:04 PM, Oftenwrong Soong wrote: > In the MVC style, I want to avoid connecting directly between a view and a > model. However I have a custom NSView subclass that renders a graphical view > of the model and therefore it needs information from the model. I think it is >

Re: Obtaining selected text from the frontmost application

2009-11-10 Thread Dave Keck
http://www.google.com/search?q=services+site%3Adeveloper.apple.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Custom borderless window not getting it's shadow

2009-11-10 Thread Kevin
Does the window have any content? Kevin On Nov 10, 2009, at 11:09 PM, kentoz...@comcast.net wrote: Hi I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem. - (id) initWithSize:(NSSize) in

Custom borderless window not getting it's shadow

2009-11-10 Thread kentozier
Hi I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem. - (id) initWithSize:(NSSize) inSize origin:(NSPoint) inOrigin { NSRect winFrame = NSMakeRect(inOrigin.x, inOrigin.y, inSize.width, in

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Nava Carmon
Thank you Corbin for your great post. How do I track the following issue with instruments: *** attempt to pop an unknown autorelease pool ObjectAllocator with NSZombieEnabled doesn't react on this. I could track the same case you explained in your post, but it doesn't work for pool autorele

Re: Implicit @try/@catch?

2009-11-10 Thread Jens Alfke
On Nov 10, 2009, at 8:44 PM, Jim Kang wrote: > I ran some code that apparently threw an exception of sorts, but it was > "caught" without any code explicit @catch block. It was like this: Weird — I don't know of anything that would cause that. Is this a Release build? The code optimization/reor

Re: Obtaining selected text from the frontmost application

2009-11-10 Thread Nava Carmon
Thank you for answering. Can you point me to resources on this? Nava On Nov 11, 2009, at 12:10 AM, Alexander Spohr wrote: Services? At least if the user wants you to get the text. Otherwise? Would be a security issue and should not be possible. atze Am 10.11.2009 um 17:55 schrieb

Implicit @try/@catch?

2009-11-10 Thread Jim Kang
I ran some code that apparently threw an exception of sorts, but it was "caught" without any code explicit @catch block. It was like this: SEL addSelfToPhysicalWorldSelector = @selector(addSelfToPhysicalWorld:atPosition:); if ([self respondsToSelector:addSelfToPhysicalWorldSelector

All Address Book person unique IDs are the same

2009-11-10 Thread Greg Hoover
I'm using the following code to search for AB Records matching an email address. The search finds matching records but every returned record has the same unique ID (which doesn't match the unique ID of any Person records in AB). Any ideas? ABAddressBook *book = [ABAddressBook sharedA

Re: NSArrayController question [Solved]

2009-11-10 Thread Oftenwrong Soong
Hi all, Sorry. I'm just too tired to be programming right now. The solution to my earlier question is to send the action to my document controller instead of sending it to the NSArrayController. My document controller's action method calls NSArrayController's newObject, does its additional proc

NSArrayController question

2009-11-10 Thread Oftenwrong Soong
Hi all, I have a very common UI layout: a Master/Detail view. The Master is a NSTableView bound via a NSArrayController to a NSMutableArray, with buttons for Add and Remove whose Target/Action is the NSArrayController's add and remove actions. The Detail box displays attributes of the NSArrayCo

Strange NSNumberFormatter behavior

2009-11-10 Thread Karolis Ramanauskas
Good evening, My question involves the code below: NSNumberFormatter * nf = [[[NSNumberFormatter alloc] init] autorelease]; [nf setNumberStyle:NSNumberFormatterSpellOutStyle]; NSLog(@"'%@'", [nf numberFromString:@"one"]); // <- LINE A NSLog(@"'%@'", [nf numberFromString:@"one two"]); // <

Re: questions on memory issues

2009-11-10 Thread Matt Neuburg
On Tue, 10 Nov 2009 13:41:37 -0800, John Michael Zorko said: > >Hello, all ... > >Firstly, I very much appreciate the help i've received here -- thank >you very much :-) > >I've a debugging question. I've an issue that manifests as what >appears to be a dangling pointer. I've a view that is loaded

Re: View swap using "push" animation

2009-11-10 Thread Matt Neuburg
On Mon, 9 Nov 2009 22:18:25 -0700, PCWiz said: >I want to swap out one view with another by pushing the old view aside >to slide in a new view (the kCATransitionPush type). To use >CoreAnimation I need to work with CALayers for my views. The problem >is that attaching a backing layer to my window

Re: Localization of System Preferences Pane

2009-11-10 Thread MacProjects
Ah, a small note - copying English.lproj (or any other lproj available there) as lv.lproj (or any other unsupported language) in System Preferences.app sudo cp -r /Applications/System\ Preferences.app/Contents/Resources/English.lproj /Applications/System\ Preferences.app/Contents/Resources/lv.lp

Re: Localization of System Preferences Pane

2009-11-10 Thread MacProjects
Filed report: Enable localization for prefpane bundle used with the System Preferences app Product: Mac OS X Version/Build Number: 10C540 Classification: Feature (New) Is It Reproducible?: Always Summary: When creating a preference pane bundle for System Preferences.app with localizations for l

Transient Property and lazy-loading issue

2009-11-10 Thread Kevin
I have a Core Data entity with a transient property that is setup to lazy-load its value in an on-demand accessor. The value is an image which is loaded from file. The issue: when the object is faulted (i.e. the fault fires), the accessor for my transient property gets called which ends up

iphone Development mentor

2009-11-10 Thread Ian H Stewart
Hi, I had a mentor that helped me with Ruby with Rails. I have an immediate need to work on an iPhone app and would like someone to be available to help me with questions and some coding. The goal though is not to do it for me, but to work with me so I can learn these things. This is how I hav

Re: Localization of System Preferences Pane

2009-11-10 Thread Nick Zitzmann
On Nov 10, 2009, at 4:17 PM, MacProjects wrote: > So You're saying... a no-go? Have to do everything programmatically? A bug or > Apple just ignores the rest of the world ;) and solving this should be > considered as "feedback for enhancement"? It's not a bug; it's a missing feature. File a fe

Re: Localization of System Preferences Pane

2009-11-10 Thread MacProjects
Thanks for response! That was exactly the first thing I tried before posting here. Didn't work => did not mention that. I tried every possible name out there • Latvian • Latviešu • lv • lv_LV + for example, choosing "Latvian" or "lv" and opening that xib localization in IB gives me the correct l

Re: QTMovie Load Percent

2009-11-10 Thread Tim Monroe
On Nov 9, 2009, at 2:54 AM, "Mr. Gecko" wrote: Hello, I'm trying to find out how much the QTMovie have loaded so I can get a Percent of it and draw a progress bar. I know it's possible as QTMovieView's controls shows gray in the middle of how much was loaded. I've done some looking around and f

Re: Localization of System Preferences Pane

2009-11-10 Thread Nick Zitzmann
On Nov 10, 2009, at 3:36 PM, Olivier Palliere wrote: > First thing that comes to mind is that using English, French, German and so > for your localized bundles is an old fashioned way that should not be done > anymore. It does not support all languages. You must now use the iso code of > the c

How to make single-row IKImageBrowserView?

2009-11-10 Thread John Fox
Hello Nice Cocoa People: I'd like to be able to create an IKImageBrowserView that only displays a single row of items that scrolls horizontally as needed. I didn't find any public API for doing this, even though (from what I understand at least) IKImageBrowserView uses NSCollectionView which ha

Re: CALayer subclass allocation problem

2009-11-10 Thread Nick Zitzmann
On Nov 10, 2009, at 3:13 PM, Bob Barnes wrote: > Good ideas, but the static analyzer is Xcode 3.2, which requires 10.6 I > believe. I'm still running 10.5. If you're using Leopard, you can still run the object alloc instrument with reference counting turned on. This is unsustainable in the lon

Re: Localization of System Preferences Pane

2009-11-10 Thread Olivier Palliere
Hi Reinis, First thing that comes to mind is that using English, French, German and so for your localized bundles is an old fashioned way that should not be done anymore. It does not support all languages. You must now use the iso code of the country or language you want to support. For Latvia

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread Quincey Morris
On Nov 10, 2009, at 14:08, jonat...@mugginsoft.com wrote: I accept all of this except that when observing NSArrayController - arrangedObjects it seems that NSKeyValueChangeSetting is all you ever get, regardless of the nature of the changes to the underlying content. If you're really gett

Re: CALayer subclass allocation problem

2009-11-10 Thread Sean McBride
On 11/10/09 2:13 PM, Bob Barnes said: >Good ideas, but the static analyzer is Xcode 3.2, which requires >10.6 I believe. I'm still running 10.5. -- Sean McBride, B. Eng s...@r

Re: CALayer subclass allocation problem

2009-11-10 Thread Bob Barnes
Kyle, Good ideas, but the static analyzer is Xcode 3.2, which requires 10.6 I believe. I'm still running 10.5. Bob On Nov 10, 2009, at 1:30 PM, Kyle Sluder wrote: On Nov 10, 2009, at 12:57 PM, Bob Barnes wrote: hi all, My iPhone app has 2 subclasses of CALayer that appear as leaked

Re: Obtaining selected text from the frontmost application

2009-11-10 Thread Alexander Spohr
Services? At least if the user wants you to get the text. Otherwise? Would be a security issue and should not be possible. atze Am 10.11.2009 um 17:55 schrieb Nava Carmon: > Hi, > > How do I approach to this task? Which technologies to use and whether there > are example of somethin

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread jonat...@mugginsoft.com
On 10 Nov 2009, at 17:52, Quincey Morris wrote: > On Nov 10, 2009, at 05:16, jonat...@mugginsoft.com wrote: > >> On 9 Nov 2009, at 20:58, jonat...@mugginsoft.com wrote: >> >>> My Entry objects are an NSManagedObject subclass. >>> >>> I create an NSArray of N Entries and add them to my array con

Re: 10.6.2 Core Data Incompatibility

2009-11-10 Thread Jeffrey J. Early
I should add that the specific error message is that I'm getting is 'no such column: Z_16MANUALGROUPS' If I look at the schema from the .sql file created, there is indeed a Z_16MANUALGROUPS column on one of the tables, so I don't what the issue is exactly. Any idea what's happening here

Localization of System Preferences Pane

2009-11-10 Thread MacProjects
Hello! It's first time trying to localizae a prefpane... some minutes and I'm already stuck. Suppose I want to deliver a preference pane with interface in English, German, Latvian, the latter beeing mostly used. For testing purposes: I'm creating a new Preference pane project under Xcode 3.2.1

questions on memory issues

2009-11-10 Thread John Michael Zorko
Hello, all ... Firstly, I very much appreciate the help i've received here -- thank you very much :-) I've a debugging question. I've an issue that manifests as what appears to be a dangling pointer. I've a view that is loaded, and all is fine. This is OS 2.2.1. My understanding is that

Re: CALayer subclass allocation problem

2009-11-10 Thread Kyle Sluder
On Nov 10, 2009, at 12:57 PM, Bob Barnes wrote: hi all, My iPhone app has 2 subclasses of CALayer that appear as leaked objects when I run Instruments. In an effort to understand why I inserted calls to retainCount when allocating these objects. After calling alloc the reference count

10.6.2 Core Data Incompatibility

2009-11-10 Thread Jeffrey J. Early
After upgrading to 10.6.2 my Core Data model suddenly become incompatible with the stores it created on any previous system. Users that used my application under 10.5 or 10.6.1 or earlier, are now presented with "The model configuration used to open the store is incompatible with the one

CALayer subclass allocation problem

2009-11-10 Thread Bob Barnes
hi all, My iPhone app has 2 subclasses of CALayer that appear as leaked objects when I run Instruments. In an effort to understand why I inserted calls to retainCount when allocating these objects. After calling alloc the reference count on my objects is 0, but after calling the init m

Re: can't get sheet to appear

2009-11-10 Thread Kyle Sluder
On Nov 10, 2009, at 11:45 AM, SRD > wrote: - (id) init { self = [super initWithWindowNibName:@"Configure"]; ... } I'm assuming this is a subclass of NSWindowController. NSWindowController lazily loads your nib, so your configSheet outlet is always nil. This is also why awakeFromNi

can't get sheet to appear

2009-11-10 Thread SRD
Having a problem understanding what I'm doing wrong here. I am calling a controller from within another controller and when I call 'configureSheet', I expect a sheet to drop down on the main window. if (!configController) { configController = [[ConfigController alloc] init]; }

Re: Cocoa Sounds

2009-11-10 Thread Sean McBride
On 11/9/09 7:43 PM, Chunk 1978 said: >regardless, is this NSSound lag a filed bug? I don't know. Did you file it? :) If it's important to you, you should file a bug regardless of whether it's important to anyone else. Duplicates increase priority. -- __

Re: Should I learn CoreData for this project?

2009-11-10 Thread Chris Hanson
On Nov 10, 2009, at 8:15 AM, Ruotger Skupin wrote: > True, but as I found out the hard way, using Core Data multithreaded and > Bindings at the same time is a very bad idea and will lead you into a world > of pain. This is part of the reason for Core Data’s recommended thread isolation policy:

autorelease pool crash

2009-11-10 Thread Nava Carmon
My application is RubyCocoa based. Sometimes I'm getting the following message, which precedes the crash: *** attempt to pop an unknown autorelease pool What situation can cause this message? Thanks, Nava ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Michael Ash
On Tue, Nov 10, 2009 at 6:57 AM, Kiel Gillard wrote: > On 10/11/2009, at 10:51 PM, Benjamin Miller wrote: > >> On 10 Nov 2009, at 11:45, Motti Shneor wrote: >> >>> This may seem a silly question, but I cannot find any decent way for my >>> Plug-In bundle code to access its own resources! >>> >>> .

Instruments UI Recorder and Screenshots

2009-11-10 Thread Bryan Hansen
Hello, I've been playing around with the UI Recorder functionality in Instruments and I'm interested in taking a screenshot after a UI Recorder playback has occurred. Does anyone know if this is possible? It looks like you can create your own instruments which can run scripts, so I though

Re: iPhone: how to tell if a UIScrollView is scrolling?

2009-11-10 Thread Mike Abdullah
A UIScrollView is scrolling if it returns YES for either -isDragging or -isDecelerating On 10 Nov 2009, at 17:18, John Michael Zorko wrote: > > Hello, all ... > > After making the NSOperation and view tag changes, my app is scrolling a > large table view with hundreds of images much better. H

Re: Cocoa Sounds

2009-11-10 Thread James Walker
Damien Cooke wrote: Hi all, I may be way off but in my iPhone game I used SystemSoundID and AudioServicesCreateSystemSoundID I am not sure if that is helpful at all but it did not seem to have a delay but it does not support many formats either. So if you are happy to convert your format this

Re: iPhone: how to tell if a UIScrollView is scrolling?

2009-11-10 Thread Luke the Hiesterman
@property(nonatomic,readonly,getter=isDragging) BOOL dragging;// returns YES if user has started scrolling. this may require some time and or distance to move to initiate dragging Luke On Nov 10, 2009, at 9:18 AM, John Michael Zorko wrote: Hello, all ... After making the NSOp

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread Quincey Morris
On Nov 10, 2009, at 05:16, jonat...@mugginsoft.com wrote: On 9 Nov 2009, at 20:58, jonat...@mugginsoft.com wrote: My Entry objects are an NSManagedObject subclass. I create an NSArray of N Entries and add them to my array controller like so. [self.arrayController addObjects:newEntries]; I

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Douglas Davidson
On Nov 10, 2009, at 4:59 AM, Motti Shneor wrote: Thanks guys, but you may have not read all my message --- The [NSBundle bundleForClass:[self class]]; is unusable for me, because I have many plugins that build from the same code, and export the same class (of course --- the same class nam

Re: iPhone: how to tell if a UIScrollView is scrolling?

2009-11-10 Thread Gabriel Höhener
Hello John Maybe with the delegate methods... they tell you when your scrollView begins to scroll (-scrollViewWillBeginDragging:) and when it stops scrolling (-scrollViewDidEndDecelerating:)... and there are other methods that might be of interest... just have a look at the UIScrollViewDeleg

iPhone: how to tell if a UIScrollView is scrolling?

2009-11-10 Thread John Michael Zorko
Hello, all ... After making the NSOperation and view tag changes, my app is scrolling a large table view with hundreds of images much better. However, there is still some jerkiness, caused by the fact that when the NSOperation calls the refresh (image update) method, it has to call it on t

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Corbin Dunn
On Nov 10, 2009, at 5:37 AM, Ian Piper wrote: > Hi all, > > Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? I > have an application that I can run quite happily two out of three times. Then > it will crash with this error. By this I mean I can do Build and Run > su

Obtaining selected text from the frontmost application

2009-11-10 Thread Nava Carmon
Hi, How do I approach to this task? Which technologies to use and whether there are example of something similar. Thanks a lot for the guidance, Nava ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Ian Piper
To Jens and Ryan, Thanks for the pointers - very helpful. Ian. -- ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Ryan Homer
These might also be helpful: http://www.cocoadev.com/index.pl?DebuggingTechniques (in particular see the "Breaking on Exceptions" section where they talk about objc_exception_throw) http://chanson.livejournal.com/171198.html Then, when you crash, bring up the Debugger (Cmd-Shift-Y). Sometimes you

Re: Font experts: How to determine if a glyph is available for a particular character

2009-11-10 Thread Ryan Homer
On 2009-11-10, at 10:51 AM, Alastair Houghton wrote: > On 10 Nov 2009, at 15:21, Ryan Homer wrote: > >> Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) >> and a certain font, say STHeiti. I would like to programatically determine >> if the font contains a glyph for the

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Jens Alfke
On Nov 10, 2009, at 5:37 AM, Ian Piper wrote: Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? I have an application that I can run quite happily two out of three times. Then it will crash with this error. By this I mean I can do Build and Run successively with n

[MEET] CocoaHeads-NYC this Thursday, 11/12

2009-11-10 Thread Andy Lee
Demitri Muna will talk about Cappuccino, a web UI framework that lets you build desktop-like apps using code that is eerily similar to Cocoa. Cappuccino uses Objective-J, an extension of JavaScript that looks and works like Objective-C. As usual: (1) Please feel free to bring questions, code,

Re: NSValueTransformer problem with NSTextField update

2009-11-10 Thread Paul Bruneau
If anyone is interested in seeing this issue with NSValueTransformer and how it performs in a table vs in a text field, I had filed a bug (7268704) on it and was asked to provide an example. So I thought I'd share my example: http://ethicalpaul.com/share/transformer_sample_code.zip It's ba

Re: Should I learn CoreData for this project?

2009-11-10 Thread Ruotger Skupin
On 04.11.2009, at 12:15, Kai Brüning wrote: >> 2. multithreaded core data is very hard to get right (multiple contexts, >> data merges) > > Isn’t this true for multi threaded code in general? > Seriously, the documentation explains how to structure multi threaded use of > Core Data. This might

Re: Font experts: How to determine if a glyph is available for a particular character

2009-11-10 Thread Alastair Houghton
On 10 Nov 2009, at 15:21, Ryan Homer wrote: > Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) and > a certain font, say STHeiti. I would like to programatically determine if the > font contains a glyph for the character. How can I do this? Assuming you have an NSFont o

Font experts: How to determine if a glyph is available for a particular character

2009-11-10 Thread Ryan Homer
Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) and a certain font, say STHeiti. I would like to programatically determine if the font contains a glyph for the character. How can I do this? I know that NSString(AppKitAdditions) has sizeWithAttribute: but that doesn't t

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread James Montgomery
NSZombieEnabled should help track down your memory error. http://www.cocoadev.com/index.pl?NSZombieEnabled On Tue, Nov 10, 2009 at 8:37 AM, Ian Piper wrote: > Hi all, > > Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? > I have an application that I can run quite happ

Keychain access and Automator action code signature

2009-11-10 Thread Pierre-Olivier Latour
[Note: I did send this email originally to the automator-dev mailing list 2 weeks ago but received absolutely no response nor saw any traffic. Since it's Cocoa related, I'm now trying here.] Hi, I have written an Obj-C action that access the Keychain to retrieve the username / password it require

Re: cocoabuilder.com

2009-11-10 Thread Jean-Daniel Dupas
Le 10 nov. 2009 à 14:09, Rui Pacheco a écrit : > Seems to be down for a few days. Maybe we should email whoever registered > the domain? > > 2009/11/10 John Love > >> Is http://www.cocoabuilder.com/ dead? >> >> In the meantime, if you want to search archives, you can use google: "my query

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Alastair Houghton
On 10 Nov 2009, at 12:59, Motti Shneor wrote: > is unusable for me, because I have many plugins that build from the same > code, and export the same class (of course --- the same class name). That's your mistake. You shouldn't do that. Class names must be unique within a process, otherwise yo

EXC_BAD_ACCESS mystery

2009-11-10 Thread Ian Piper
Hi all, Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? I have an application that I can run quite happily two out of three times. Then it will crash with this error. By this I mean I can do Build and Run successively with no problems and then it will crash - n

Re: NSArrayController -addObjects and undo - [improved but still confused]

2009-11-10 Thread jonat...@mugginsoft.com
On 9 Nov 2009, at 20:58, jonat...@mugginsoft.com wrote: > My Entry objects are an NSManagedObject subclass. > > I create an NSArray of N Entries and add them to my array controller like so. > [self.arrayController addObjects:newEntries]; > > I am observing [self.arrayController arrangedObjects]

Re: cocoabuilder.com

2009-11-10 Thread Rui Pacheco
Seems to be down for a few days. Maybe we should email whoever registered the domain? 2009/11/10 John Love > Is http://www.cocoabuilder.com/ dead? > > > John Love > Touch the Future! Teach! > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Mike Abdullah
On 10 Nov 2009, at 12:59, Motti Shneor wrote: Thanks guys, but you may have not read all my message --- The [NSBundle bundleForClass:[self class]]; is unusable for me, because I have many plugins that build from the same code, and export the same class (of course --- the same class name).

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Motti Shneor
Thanks guys, but you may have not read all my message --- The [NSBundle bundleForClass:[self class]]; is unusable for me, because I have many plugins that build from the same code, and export the same class (of course --- the same class name). Obj-C has no name-spaces, and so, If you load 2 su

cocoabuilder.com

2009-11-10 Thread John Love
Is http://www.cocoabuilder.com/ dead? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)list

Re: Custom window not getting a shadow

2009-11-10 Thread Rob Keniger
On 10/11/2009, at 9:51 PM, Ken Tozier wrote: > I'm writing a custom window class and am finding that even though I set the > "hasShadow" property to YES, it isn't getting one. I stripped the following > example down to the bare esentials but still no shadow. Anyone know why this > might be hap

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Kiel Gillard
On 10/11/2009, at 10:51 PM, Benjamin Miller wrote: On 10 Nov 2009, at 11:45, Motti Shneor wrote: This may seem a silly question, but I cannot find any decent way for my Plug-In bundle code to access its own resources! ... snip ... Is there a way out? Is there any trick, or technique to wor

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Benjamin Miller
On 10 Nov 2009, at 11:45, Motti Shneor wrote: Is there a way out? Is there any trick, or technique to work around this bizarre deficiency of the Bundle mechanism? That should have been: [NSBundle bundleForClass:[self class]] Benjamin ___ Cocoa-dev

Re: Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Alexander Spohr
Am 10.11.2009 um 12:45 schrieb Ian Piper: > I hope someon can advise as to the best way to do what I want. I have a > multiline textfield that receives a very long piece of text. I wanted to add > a vertical scrollbar. I tried putting the multiline textfield inside a scroll > view but I'm not

Re: Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Graham Cox
On 10/11/2009, at 10:45 PM, Ian Piper wrote: > I also tried to use a textview but in that case I got an error saying that > NSTextView may not respond to setStringValue. > > What is the best way to do this? I think this is the best way to do this. However, because NSTextView doesn't inherit

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Benjamin Miller
On 10 Nov 2009, at 11:45, Motti Shneor wrote: This may seem a silly question, but I cannot find any decent way for my Plug-In bundle code to access its own resources! ... snip ... Is there a way out? Is there any trick, or technique to work around this bizarre deficiency of the Bundle mech

Custom window not getting a shadow

2009-11-10 Thread Ken Tozier
Hi I'm writing a custom window class and am finding that even though I set the "hasShadow" property to YES, it isn't getting one. I stripped the following example down to the bare esentials but still no shadow. Anyone know why this might be happening? - (id) initWithSize:(NSSize) inSize

Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Ian Piper
Hi all, I hope someon can advise as to the best way to do what I want. I have a multiline textfield that receives a very long piece of text. I wanted to add a vertical scrollbar. I tried putting the multiline textfield inside a scroll view but I'm not sure how you would tell the latter wh

How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Motti Shneor
Hi. This may seem a silly question, but I cannot find any decent way for my Plug-In bundle code to access its own resources! The host application that loads my plug-in bundle does not pass me any NSBundle* or CFBundleRef, and I am wondering is there a complement to the [NSBundle mainBundle] fo