Re: Crash(?) Questions

2012-06-11 Thread Mike Abdullah
http://mikeabdullah.net/leopard+blocks.html On 11 Jun 2012, at 14:14, koko wrote: > I am beta testing a new release with 4 users. One in Norway gets this when > launching the program: > > Process: Embrilliance [262] > Path:/Applications/Embrilliance.app/Contents/MacOS/Embri

Re: Crash(?) Questions

2012-06-11 Thread Greg Parker
On Jun 11, 2012, at 5:29 PM, koko wrote: > I understand the Block Objects discussion. However these would not come in > to play until the App was running and the user chose a file ope or save > which uses block for the 'callback'. > > This error occurs on launch. I did not think that the 'ma

Re: Crash(?) Questions

2012-06-11 Thread Kyle Sluder
On Jun 11, 2012, at 5:29 PM, koko wrote: > I understand the Block Objects discussion. However these would not come in > to play until the App was running and the user chose a file ope or save > which uses block for the 'callback'. > > This error occurs on launch. I did not think that the 'ma

Re: Crash(?) Questions

2012-06-11 Thread Jens Alfke
On Jun 11, 2012, at 5:29 PM, koko wrote: > This error occurs on launch. I did not think that the 'mach loader' checked > all symbols at launch .., Sure it does, unless they're marked as weak imports. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Crash(?) Questions

2012-06-11 Thread koko
I understand the Block Objects discussion. However these would not come in to play until the App was running and the user chose a file ope or save which uses block for the 'callback'. This error occurs on launch. I did not think that the 'mach loader' checked all symbols at launch .., -koko

Re: TextField not updated in a sheet for document-based Cocoa app

2012-06-11 Thread Graham Cox
On 12/06/2012, at 12:29 AM, Gilles Celli wrote: > the sheet is properly displayed (with its TextField and button) for the > current document window, but the textField stringValue can't be set > Maybe because it's the sheet is on a different thread ?… > > I've tried to get the sheet's textField

Re: setting preselected file for nsopenpanel

2012-06-11 Thread Rick C.
Ok with this unfortunately what happens is the actual file is treated as a directory and it appears in the dropdown bar at the top. So if I pass ~/Downloads/test.pdf for setDirectoryURL: it thinks test.pdf is a directory and wants me to choose a file from the test.pdf directory. Any other idea

Re: setting preselected file for nsopenpanel

2012-06-11 Thread Rick C.
Thanks all for the replies. I know setNameFieldStringValue: doesn't work I tried it. I also tried (I thought) the suggestion by corbin but I will go back and try it again to make sure I did it right. I'll post back my results thanks! rc On Jun 12, 2012, at 5:11 AM, Corbin Dunn wrote: > Th

Re: Crash(?) Questions

2012-06-11 Thread Ken Thomases
On Jun 11, 2012, at 4:14 PM, koko wrote: > I am beta testing a new release with 4 users. One in Norway gets this when > launching the program: > > Process: Embrilliance [262] > Path:/Applications/Embrilliance.app/Contents/MacOS/Embrilliance > Identifier: com.britonleap.

Re: Crash(?) Questions

2012-06-11 Thread Greg Parker
On Jun 11, 2012, at 2:14 PM, koko wrote: > I am beta testing a new release with 4 users. One in Norway gets this when > launching the program: > > Process: Embrilliance [262] > Path:/Applications/Embrilliance.app/Contents/MacOS/Embrilliance > Identifier: com.britonleap.

Re: Desktop geometry problem

2012-06-11 Thread Lee Ann Rucker
> If you have only two rectangles, and they touch only at a corner, you'll get > horizontal and vertical segments that cross at that corner, without ending > there. Each of those line segments will be partly clockwise and partly > counterclockwise. The ambitious student could resolve this by ass

Crash(?) Questions

2012-06-11 Thread koko
I am beta testing a new release with 4 users. One in Norway gets this when launching the program: Process: Embrilliance [262] Path:/Applications/Embrilliance.app/Contents/MacOS/Embrilliance Identifier: com.britonleap.Embrilliance Version: ??? (???) Code Type:

Re: setting preselected file for nsopenpanel

2012-06-11 Thread Corbin Dunn
This is a known limitation, as Lee Ann Rucker reported in the prior message. One work around is to use setDirectoryURL: and pass it the actual file (not the folder). I believe that will pre-select it (sort of by accident). corbin On Jun 11, 2012, at 4:08 AM, Rick C. wrote: > Hi, > > Been thr

Macbook Pro retina display and simulator question.

2012-06-11 Thread Scott A Andrew
How does the new 15" retina display handle the iOS simulator. Does the simulator work in pixels or points. Is it going to be just like working a 15" today since text is in points and 12 pt is really 24? Or will it only take 1024x768 + bezel pixels? The one reason i have a 17" is that the simula

Re: Desktop geometry problem

2012-06-11 Thread Ron Hunsinger
On Jun 8, 2012, at 4:01 AM, Gregory Weston wrote: > Strictly what I need is the set of individual line segments that define the > perimeter, but I figured that it anyone had a solution to the problem in > already it was likely to be giving back a path instead of just a list of > points and I co

NSDocument fileWrapperOfType:: invalidates returned wrapper, options?

2012-06-11 Thread Markus Spoettl
I have an NSDocument based app that has uses packages do to store a complex structure. When I open a document, I keep the wrapper around handed to the document in -readFromFileWrapper:ofType:error: in order to lazy-load parts of the package when my app needs them. Similarly, I keep the wrappe

Re: setting preselected file for nsopenpanel

2012-06-11 Thread Lee Ann Rucker
Nope. I filed a bug (10522782), it got marked as a duplicate of bug 8106339 Mine was: NSOpenPanel beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo: let you provide an initial selection. The replacement method doesn't. In addition to having an initial selection, it would b

Re: Defining subclasses at run time

2012-06-11 Thread Greg Parker
On Jun 11, 2012, at 2:35 AM, Oleg Krupnov wrote: > Now the problem is that I need multiple arrays of MyItems have > different contexts. The solution could be to add the context pointer > as an ivar to each MyItem instance, but I would not like to waste > memory on that (the arrays are huge). Firs

Re: Defining subclasses at run time

2012-06-11 Thread Jens Alfke
On Jun 11, 2012, at 9:50 AM, Rainer Brockerhoff wrote: > You could subclass NSArray (tricky because it's a class cluster), adding the > context variable as an ivar to that; or make your own class containing that > context and the actual array, and implementing all the proper methods. I don't t

Re: Proper place to post on 10.8 SDK?

2012-06-11 Thread Patrick Cusack
Yes. I am. Thanks for the direction. Sent from my iPhone On Jun 11, 2012, at 10:05 AM, Conrad Shultz wrote: > http://devforums.apple.com > > You need to be a Mac program member to access the NDA forums, but you > presumably are if you have 10.8. > > (Sent from my iPhone.) > > -- > Conrad

Re: Proper place to post on 10.8 SDK?

2012-06-11 Thread Conrad Shultz
http://devforums.apple.com You need to be a Mac program member to access the NDA forums, but you presumably are if you have 10.8. (Sent from my iPhone.) -- Conrad Shultz On Jun 11, 2012, at 9:50, livinginlosange...@mac.com wrote: > Where could I post questions regarding the 10.8 SDK? Is that

Re: Proper place to post on 10.8 SDK?

2012-06-11 Thread Antonio Nunes
On 11 Jun 2012, at 17:50, livinginlosange...@mac.com wrote: > Where could I post questions regarding the 10.8 SDK? Is that on the apple > developer website? devforums.apple.com -António I try to take one day at a time, but sometimes, several days at

Re: Proper place to post on 10.8 SDK?

2012-06-11 Thread Roland King
devforums.apple.com has a place for the 10.8 beta, you need to be an OSX developer with access to the seeds to post or read there. On Jun 12, 2012, at 12:50 AM, livinginlosange...@mac.com wrote: > Where could I post questions regarding the 10.8 SDK? Is that on the apple > developer website? >

Proper place to post on 10.8 SDK?

2012-06-11 Thread livinginlosangeles
Where could I post questions regarding the 10.8 SDK? Is that on the apple developer website? Patrick ___ 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

Re: Defining subclasses at run time

2012-06-11 Thread Rainer Brockerhoff
On Jun 11, 2012, at 13:20 , cocoa-dev-requ...@lists.apple.com wrote: > Date: Mon, 11 Jun 2012 12:35:13 +0300 > From: Oleg Krupnov > Message-ID: > > > I'm solving the following problem. I have a huge array of items of the > same class MyItem. All items need to share a certain global "conte

Re: A color well in a table view?

2012-06-11 Thread Corbin Dunn
On Jun 11, 2012, at 8:45 AM, H Miersch wrote: > I found the switch that makes my table view view-based, but then my table > view showed some default text instead of the text I return from > -tableview:objectvaluefortablecolumn:row: > What can I do about that? I recommend reading the documenta

Re: A color well in a table view?

2012-06-11 Thread H Miersch
I found the switch that makes my table view view-based, but then my table view showed some default text instead of the text I return from -tableview:objectvaluefortablecolumn:row: What can I do about that? Sent from my iPhone On 7 Jun 2012, at 16:32, Sean McBride wrote: > On Thu, 7 Jun 2012 1

Re: setting preselected file for nsopenpanel

2012-06-11 Thread Dave Fernandes
Well, NSOpenPanel inherits from NSSavePanel, so setNameFieldStringValue: might work. I haven't tried this, and I don't know whether there would be sandboxing issues. On 2012-06-11, at 7:08 AM, Rick C. wrote: > Hi, > > Been through numerous posts on stack overflow without a solution so here goe

TextField not updated in a sheet for document-based Cocoa app

2012-06-11 Thread Gilles Celli
Hi, I've written a document-based Cocoa application on OS X which displays graphs visually by opening an ASCII file. My program has also the possibility to append ASCII files to the current document: when a user chooses the "Append …" menu in the File Menu a sheet opens with a NSTextField appen

setting preselected file for nsopenpanel

2012-06-11 Thread Rick C.
Hi, Been through numerous posts on stack overflow without a solution so here goes: runModalForDirectory:file:types: was deprecated but in the docs it doesn't give the replacement for the file argument. How can we have a file preselected when running an open panel? Thanks, rc

Defining subclasses at run time

2012-06-11 Thread Oleg Krupnov
Hi, I'm solving the following problem. I have a huge array of items of the same class MyItem. All items need to share a certain global "context" variable. Normally, I would wrap access to this variable in a class-level (+) method of MyItem, like +[MyItem getContext]. Now the problem is that I nee