Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Scott Anguish
On Dec 2, 2009, at 12:14 AM, Stephen J. Butler wrote: > On Tue, Dec 1, 2009 at 9:55 AM, Sravana Kumar wrote: >> When did some analysis I found that file system keeps Quarantine information >> in the extended attributes along with the files and shows this alert. >> xattr -d com.apple.quarantine

IKImageView troubles (delegate, geometric transformations of content)

2009-12-02 Thread Emmanuel d'Angelo
Hi, I'm a PhD student in the image processing field, and I'm trying to write some demo software of the technology available in my lab. I'm working on image inpainting, which is roughly the task of automatically replacing a selected image area by the available surrounding data without noticeable

Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Sravana Kumar
I am sure that while attaching (creating dmg) quarantine attributes are not present in the source. What i am expecting is that while mounting DMG there should be a way to specify not to add quarantine attributes. Regards, -Sra1 On Wed, Dec 2, 2009 at 10:50 AM, Stephen J. Butler wrote: > On Tue

Re: Disable horizontal scroll on NSScrollView

2009-12-02 Thread Kyle Sluder
On Wed, Dec 2, 2009 at 6:35 PM, PCWiz wrote: > Is there any way to completely disable horizontal scroll on an NSScrollView? > I looked around but couldn't find any answers. I know you can easily hide > the horizontal scroll bar itself in IB, but that doesn't stop the user from > scrolling using th

Disable horizontal scroll on NSScrollView

2009-12-02 Thread PCWiz
Is there any way to completely disable horizontal scroll on an NSScrollView? I looked around but couldn't find any answers. I know you can easily hide the horizontal scroll bar itself in IB, but that doesn't stop the user from scrolling using the mouse (I can scroll horizontally on my MBP's

Re: image not found

2009-12-02 Thread Greg Parker
On Dec 2, 2009, at 5:46 PM, Torsten Curdt wrote: > On Thu, Dec 3, 2009 at 00:32, Kyle Sluder wrote: >> On Wed, Dec 2, 2009 at 2:26 PM, Torsten Curdt wrote: >>> Referenced from: /Users/someuser/Desktop/uif2iso4mac_1.4.0/./uif2iso4mac >> >> This is what's going wrong. uif2iso4mac should be locat

Re: Getting reference to NSWindowController from subviews

2009-12-02 Thread PCWiz
Thanks, worked great. On 2009-12-02, at 6:37 PM, Graham Cox wrote: On 03/12/2009, at 12:26 PM, PCWiz wrote: What is the best way to get a reference to my NSWindowController object from subviews of its window? [[theView window] windowController]; --Graham

Re: simple NSRunLoop question

2009-12-02 Thread Mike Abdullah
On 3 Dec 2009, at 01:59, John Michael Zorko wrote: > > Hello, all ... > > i've done some googling, and read documentation for NSRunLoop and NSThread, > but there's something I don't know: How do I get the run loop of a specific > NSThread? Something like: > > [streamerThread getCurrentRunLo

simple NSRunLoop question

2009-12-02 Thread John Michael Zorko
Hello, all ... i've done some googling, and read documentation for NSRunLoop and NSThread, but there's something I don't know: How do I get the run loop of a specific NSThread? Something like: [streamerThread getCurrentRunLoop]; ?? Regards, John __

Re: image not found

2009-12-02 Thread Torsten Curdt
On Thu, Dec 3, 2009 at 00:32, Kyle Sluder wrote: > On Wed, Dec 2, 2009 at 2:26 PM, Torsten Curdt wrote: >>  Referenced from: /Users/someuser/Desktop/uif2iso4mac_1.4.0/./uif2iso4mac > > This is what's going wrong.  uif2iso4mac should be located in > Contents/MacOS.  Moving it out of there is going

Re: Debugging stack traces

2009-12-02 Thread Graham Cox
Thanks! That's pretty cool, and very comprehensive. --Graham On 03/12/2009, at 12:21 PM, Greg Parker wrote: > That's the offset in bytes of the CPU instruction in that function - the > crashing instruction in the top frame, and the instruction after the call in > the other frames. > > You ca

Re: Getting reference to NSWindowController from subviews

2009-12-02 Thread Graham Cox
On 03/12/2009, at 12:26 PM, PCWiz wrote: > What is the best way to get a reference to my NSWindowController object from > subviews of its window? [[theView window] windowController]; --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Getting reference to NSWindowController from subviews

2009-12-02 Thread Jens Alfke
On Dec 2, 2009, at 5:26 PM, PCWiz wrote: > What is the best way to get a reference to my NSWindowController object from > subviews of its window? self.window.delegate ... since NSWindowController relies on being its NSWindow's delegate. —Jens___ Co

Getting reference to NSWindowController from subviews

2009-12-02 Thread PCWiz
What is the best way to get a reference to my NSWindowController object from subviews of its window? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Re: Debugging stack traces

2009-12-02 Thread Greg Parker
On Dec 2, 2009, at 4:55 PM, Graham Cox wrote: > When I get a stack trace in a crash report, as exampled below, can I use the > offsets (+71, +50) to locate the relevant line in the source code? What do > these numbers actually mean? > > 1 com.apptree.drawkit 0x001c7bb9 -[DKDrawab

Re: Debugging stack traces

2009-12-02 Thread Jens Alfke
On Dec 2, 2009, at 4:55 PM, Graham Cox wrote: > When I get a stack trace in a crash report, as exampled below, can I use the > offsets (+71, +50) to locate the relevant line in the source code? What do > these numbers actually mean? They're byte offsets from the start of the function, in the m

Debugging stack traces

2009-12-02 Thread Graham Cox
Hi all, When I get a stack trace in a crash report, as exampled below, can I use the offsets (+71, +50) to locate the relevant line in the source code? What do these numbers actually mean? 1 com.apptree.drawkit 0x001c7bb9 -[DKDrawableObject encodeWithCoder:] + 71 2 com.mapd

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread David M. Cotter
there is a component we must load (a plugin) that is outside of our control that runs an event loop, before we have our NSApp initialized (therefore it is unable to handle the :openDocuments call) On Dec 2, 2009, at 11:06 AM, Matt Neuburg wrote: > On Tue, 1 Dec 2009 15:05:19 -0800, "David M. Co

Re: image not found

2009-12-02 Thread Kyle Sluder
On Wed, Dec 2, 2009 at 2:26 PM, Torsten Curdt wrote: >  Referenced from: /Users/someuser/Desktop/uif2iso4mac_1.4.0/./uif2iso4mac This is what's going wrong. uif2iso4mac should be located in Contents/MacOS. Moving it out of there is going to cause @loader_path to resolve to /Users/someuser/Deskt

image not found

2009-12-02 Thread Torsten Curdt
I hope this is not too OT but I am still trying to pin down what this actually is: I have a couple of thousand people happily using this app without a problem. >From time to time I see bug reports including this error message: Dyld Error Message: Library not loaded: @loader_path/../Frameworks/

Re: Modifying TableHeaderCell

2009-12-02 Thread Gustavo Pizano
Hello Mark thanks for your reply.. I was looking at Matt's code and I was close to what he was doing, but still I ccan' make it work even I modify the title attributes to make a bigger NSRect,,, dunno what Im missing here, is it even possible to do so? G On Dec 2, 2009, at 10:26 PM, Mark Alla

What does the 8GB limit in GC really mean? Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Bill Bumgarner
There seems to be some confusion as to what the 8GB limit under GC means. So, a clarification The 8GB limit is only on GC based allocations. That is, your app can allocate up to 8GB of GC'd allocations, no more. There is no such limit on the other allocation zones (the malloc zone, for e

Re: Modifying TableHeaderCell

2009-12-02 Thread Mark Allan
On 2 Dec 2009, at 11:51 am, Gustavo Pizano wrote: Hello, I know this has been asked, but the answers I have found on internet even gave me a light of what to do, i still can't accomplish what I want. I subclassed NSTableHeaderView, NSTableHeaderCell, NSTableView then I make the table he

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Greg Parker
On Dec 2, 2009, at 1:01 PM, Sean McBride wrote: > On 12/2/09 12:33 PM, Jens Alfke said: >>> I'm stress testing a 64 bit GC app with AUTO_USE_GUARDS and left it >>> running overnight. This morning it's crashed here: >> >> Doesn't that turn on GuardMalloc, which adds an extra unmapped page >> befor

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Bill Bumgarner
On Dec 2, 2009, at 1:01 PM, Sean McBride wrote: > If GC memory is really limited to 8 GB (and not 32), then I probably am > hitting that limit with the guard pages on. :( Is there a way to > increase that limit, at least in debug? 8 is pretty puny. :( Grab the source. It is just a constant.

Re: Key path help for complex binding

2009-12-02 Thread Quincey Morris
On Dec 2, 2009, at 12:18, Kyle Sluder wrote: > On Wed, Dec 2, 2009 at 11:37 AM, Quincey Morris > wrote: >> In some cases, you can do the wrong thing -- change the instance variable >> directly -- and still be KVO compatible if you manually call the >> willChangeValueForKey:/didChangeValueForKey

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Sean McBride
On 12/2/09 12:33 PM, Jens Alfke said: >> I'm stress testing a 64 bit GC app with AUTO_USE_GUARDS and left it >> running overnight. This morning it's crashed here: > >Doesn't that turn on GuardMalloc, which adds an extra unmapped page >before and after every allocation? In other words, there's an

Re: View sizing issue when using "disclosure view"

2009-12-02 Thread Bryan Zarnett
Thanks Ron. I woke up with that as an idea this morning but was hoping for a "you forgot to click this" answer. I did what you suggested and it works great. Thanks, Bryan On 1-Dec-09, at 11:50 PM, Ron Fleckner wrote: On 02/12/2009, at 2:14 PM, Bryan Zarnett wrote: I'm having trouble mak

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Bill Bumgarner
On Dec 2, 2009, at 12:24 PM, Greg Parker wrote: > The 64-bit garbage collector reserves a 32 GB heap and will not expand it > further. If you allocate more than 32 GB you'll run out of memory. Actually, it is an 8GB heap. b.bum ___ Cocoa-dev mailing

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Jens Alfke
On Dec 2, 2009, at 7:27 AM, Sean McBride wrote: > I'm stress testing a 64 bit GC app with AUTO_USE_GUARDS and left it > running overnight. This morning it's crashed here: Doesn't that turn on GuardMalloc, which adds an extra unmapped page before and after every allocation? In other words, there

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Greg Parker
On Dec 2, 2009, at 7:27 AM, Sean McBride wrote: > I'm stress testing a 64 bit GC app with AUTO_USE_GUARDS and left it > running overnight. This morning it's crashed here: > > #00x7fff879390da in objc_exception_throw > #10x7fff83c4a18e in _NSOutOfMemoryErrorHandler > #20x7fff835046f9 i

Re: Key path help for complex binding

2009-12-02 Thread Ken Thomases
On Dec 2, 2009, at 1:47 PM, David Hirsch wrote: This is quite helpful, Quincey, but one thing you wrote surprises me: If you have a simple 'int' property backed by a single 'int' instance variable, changing the variable directly in your class implementation will not generate any KVO notific

Re: Key path help for complex binding

2009-12-02 Thread Kyle Sluder
On Wed, Dec 2, 2009 at 11:37 AM, Quincey Morris wrote: > In some cases, you can do the wrong thing -- change the instance variable > directly -- and still be KVO compatible if you manually call the > willChangeValueForKey:/didChangeValueForKey: methods (or the similar ones > designed specifical

Re: Contain touches within UIImageView only

2009-12-02 Thread glenn andreas
On Dec 2, 2009, at 12:23 PM, Chunk 1978 wrote: > i have a custom class for a UIImageView which contains touch methods. > at launch, the custom UIImageView is added (by interface builder) as a > subview to the main UIViewController's view. > > i can't seem to make the touch methods only trigger i

Re: Key path help for complex binding

2009-12-02 Thread David Hirsch
This is quite helpful, Quincey, but one thing you wrote surprises me: If you have a simple 'int' property backed by a single 'int' instance variable, changing the variable directly in your class implementation will not generate any KVO notifications. Changing the *property* -- which in that

Re: Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Sébastien Stormacq
I just borrowed an iPod Touch from a friend and tested my app on it. It works as expected. I can not reproduce the steps Apple said it crashed. What's the procedure when we don't reproduce a crash at startup that caused Apple to reject the app ? Thanks for your help --Seb On 02 Dec 2009, a

Re: Key path help for complex binding

2009-12-02 Thread Quincey Morris
On Dec 2, 2009, at 09:43, David Hirsch wrote: > Are there docs (other than the official ones, which in this particular area > are inscrutable to me) that discuss this idea of a proxy? I'd like to know > more on this topic, so as to avoid similar problems in the future. I recommend you *do* fa

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread Matt Neuburg
On Tue, 1 Dec 2009 15:05:19 -0800, "David M. Cotter" said: >i've "fixed" this by installing an AE handler before startup, trapping the dropped events, then re-sending them to the NSApp after startup has completed (and removing the intrim handler, since NSApp is up and handling them by then) Are y

Re: Key path help for complex binding

2009-12-02 Thread Ken Thomases
On Dec 2, 2009, at 11:43 AM, David Hirsch wrote: That did indeed solve the problem. Are there docs (other than the official ones, which in this particular area are inscrutable to me) that discuss this idea of a proxy? I'd like to know more on this topic, so as to avoid similar problems i

Re: Use of preprocessor macros

2009-12-02 Thread Mr. George Warner
On Dec 2, 2009, at 10:39 AM, Laurent Daudelin wrote: > On Dec 2, 2009, at 09:20, Mr. George Warner wrote: > >> On Wed, 2 Dec 2009 12:35:03 +1100, Graham Cox wrote: >>> Okaaay... I got it. >>> I'd set this in the (Project) > Get Info > Build settings, not (Target) > >>> Get Info > Build setting

Re: Use of preprocessor macros

2009-12-02 Thread Laurent Daudelin
On Dec 2, 2009, at 09:20, Mr. George Warner wrote: > On Wed, 2 Dec 2009 12:35:03 +1100, Graham Cox wrote: >> Okaaay... I got it. >> I'd set this in the (Project) > Get Info > Build settings, not (Target) > >> Get Info > Build settings. >> Putting it in the target settings works as expected. >> T

Re: Custom Title Bar Drawing

2009-12-02 Thread Eimantas Vaičiūnas
Basically you need to draw new window with custom titlebar. When drawing window i use code/tutorial from here: http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html it's quite fresh compared to 2005 ,) Also it should be very useful to create such file template for yourself. On W

Custom Title Bar Drawing

2009-12-02 Thread Eric Gorr
I found this old message: http://lists.apple.com/archives/cocoa-dev/2005/Aug/msg01688.html describing a technique on how to do custom title bars, but since it is rather old, I was wondering if there are better methods now or if this message is still describes the best techniques to use. Basica

Contain touches within UIImageView only

2009-12-02 Thread Chunk 1978
i have a custom class for a UIImageView which contains touch methods. at launch, the custom UIImageView is added (by interface builder) as a subview to the main UIViewController's view. i can't seem to make the touch methods only trigger if they are within the custom UIImageView. for some reason,

Re: Migrating changed objects between contexts

2009-12-02 Thread Kai Brüning
On 2.12.2009, at 18:27, Jim Thomason wrote: >> It shouldn't deadlock. The doc for -lock says: "If you lock (or successfully >> tryLock) a managed object context, the thread in which the lock call is made >> must have a retain until it invokes unlock. If you do not properly retain a >> context

Re: Key path help for complex binding

2009-12-02 Thread David Hirsch
Thanks, Quincey- That did indeed solve the problem. Are there docs (other than the official ones, which in this particular area are inscrutable to me) that discuss this idea of a proxy? I'd like to know more on this topic, so as to avoid similar problems in the future. -Dave On Dec 2, 2

Re: Migrating changed objects between contexts

2009-12-02 Thread Jim Thomason
> It shouldn't deadlock. The doc for -lock says: "If you lock (or successfully > tryLock) a managed object context, the thread in which the lock call is made > must have a retain until it invokes unlock. If you do not properly retain a > context in a multi-threaded environment, this will result

Re: Use of preprocessor macros

2009-12-02 Thread Mr. George Warner
On Wed, 2 Dec 2009 12:35:03 +1100, Graham Cox wrote: > Okaaay... I got it. > I'd set this in the (Project) > Get Info > Build settings, not (Target) > Get > Info > Build settings. > Putting it in the target settings works as expected. > To be honest it's very confusing as to which settings you're

Re: Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Sébastien Stormacq
Just double checked. The Webview is created and loaded when the user needs it, not at application startup time. So I guess, i have to wait for my newly order iPod :-) --Seb On 02 Dec 2009, at 17:24, Glenn L. Austin wrote: > Well, you're triggering a network connection somehow, which will be

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Kyle Sluder
On Wed, Dec 2, 2009 at 7:27 AM, Sean McBride wrote: > How does a 64 bit app fail to allocate memory?  For my process, Activity > Monitor shows "real" at 2.2 GB and "Virtual" at 200 MB.  My physical > memory is not even exhausted. 64-bit apps can fail just like 32-bit apps; you could request an am

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread Kyle Sluder
On Wed, Dec 2, 2009 at 8:59 AM, Mr. George Warner wrote: > You should be able to launch via the command line and then double-click a > document to get the 'odoc' event. The point is that this bug only manifests when the app is launched in response to double-clicking a document. --Kyle Sluder __

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread Mr. George Warner
On Tue, 1 Dec 2009 13:38:41 -0500, Dave Keck wrote: > i have run with AEDebug / Send / Receives set to 1 and i see the log > of the events. but i can only do that when launching from the command > line (no double click) or from Xcode (again no double click) so there is > no way to test my problem

Re: NSString out of scope

2009-12-02 Thread Mr. George Warner
On Tue, 1 Dec 2009 23:14:44 +1100, Graham Cox wrote: > On 01/12/2009, at 10:52 PM, Pierre Berloquin wrote: >> When I want to test the content of the string I can't and the debugger >> displays "out of scope". > Ah, the debugger! Now we are getting somewhere. I see that fairly frequently. > It's

Re: Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Sébastien Stormacq
That's a good point. There is one webview in my app, although not visible until later but ... I wonder wether this is already loaded at boot time. I will double check that - thanks for the tip. When loaded in Airplane mode on my iPhone my "normal" error handling code is triggered and I receive

Re: Migrating changed objects between contexts

2009-12-02 Thread Keary Suska
On Dec 1, 2009, at 11:05 PM, Jim Thomason wrote: > So. First off, is there some way I can just leave the existing code in > there that uses the same context and just locks it in the secondary > thread? The second thread basically consisted of: > > -(void) makeGraph { > NSAutoreleasePool* pool =

Re: Control Appearance on Textured Window Sheet (Solution)

2009-12-02 Thread Mazen M. Abdel-Rahman
Hi All, There was a problem with my last solution - it does not work if a user types in anything into one of the controls. This time I had to call the superview's display function - so for everything to always display properly both the currently selected tabviewitem's view and it's superview n

Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Jens Alfke
On Dec 2, 2009, at 5:55 AM, Chris Hanson wrote: > You shouldn't need to write an "installer" in the first place. Mac OS X comes > with its own standard installation system. Agreed. When I've downloaded some new app, I really, really don't want to have to first run some totally unknown custom p

Control Appearance on Textured Window Sheet (Solution)

2009-12-02 Thread Mazen M. Abdel-Rahman
> > Message: 15 > Date: Tue, 01 Dec 2009 15:50:45 -0700 > From: "Mazen M. Abdel-Rahman" > Subject: Control Appearance on Textured Window Sheet > To: cocoa-dev@lists.apple.com > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Hi All, > > First of all - I want to thank everyone for

libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Sean McBride
Hi all, I'm stress testing a 64 bit GC app with AUTO_USE_GUARDS and left it running overnight. This morning it's crashed here: #0 0x7fff879390da in objc_exception_throw #1 0x7fff83c4a18e in _NSOutOfMemoryErrorHandler #2 0x7fff835046f9 in __CFStringHandleOutOfMemory #3 0x7fff8

Re: Use of preprocessor macros

2009-12-02 Thread Chris Hanson
Xcode build settings are lexically scoped, just like variables in C. Think of the project as an outer scope (like a file static variable) and a target like an inner scope (like a local variable). If you don't override a build setting at the target level, its project- level setting is used. Y

Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Chris Hanson
You shouldn't need to write an "installer" in the first place. Mac OS X comes with its own standard installation system. If your application is simple, it should be drag-installed; otherwise, it should use a Mac OS X installer package. -- Chris On Dec 1, 2009, at 7:55 AM, Sravana Kumar

Re: Key path help for complex binding

2009-12-02 Thread Quincey Morris
On Dec 1, 2009, at 16:19, David Hirsch wrote: > The problem is, when I add a new Room to the master rooms array, and then add > that room to the roomCosts array of each Course's roomConstraint, the table > column doesn't get updated, until I tweak it manually (by adding a new > course). It is

Modifying TableHeaderCell

2009-12-02 Thread Gustavo Pizano
Hello, I know this has been asked, but the answers I have found on internet even gave me a light of what to do, i still can't accomplish what I want. I subclassed NSTableHeaderView, NSTableHeaderCell, NSTableView then I make the table header to be class of my custom class. Then I read that to m

Re: Does NSData rearrange the order of bits?

2009-12-02 Thread Bryan Henry
Your log messages show that the NSData's bytes are stored completely correctly, you're just interpreting it incorrectly. NSData's description method will list the bytes in order, so you see "510600f0". On the other hand, you used the %x format specifier to create your string, which will print t

Re: Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Sébastien Stormacq
Yes, this is awkward - My App do not use UIPushButton, just UIBarButtonItem (in a UIBar). These do not inherit from UIPushButton - I do not work with Font, neither in Interface Builder (which does not allow to change anything btw) neither in my code. This is a stock UIBar + UIBarItems loaded f

Re: Use of preprocessor macros

2009-12-02 Thread Ken Thomases
On Dec 1, 2009, at 7:35 PM, Graham Cox wrote: On 02/12/2009, at 12:23 PM, Rob Keniger wrote: This works fine for me. Are you sure you are compiling the build configuration you think you're compiling? Are you changing the preprocessor setting on the right target? Probably worth double chec

Re: Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Glenn L. Austin
If you have an iPhone, try running your application while in Airplane mode. On Dec 2, 2009, at 12:36 AM, Sébastien Stormacq wrote: > I developed an iPhone / iPod application without testing on an iPod Touch (as > I don't have any of such device) > According to the AppStore review team, the appli

Application crashing on iPod Touch, not on iPhone

2009-12-02 Thread Sébastien Stormacq
Dear All, I developed an iPhone / iPod application without testing on an iPod Touch (as I don't have any of such device) According to the AppStore review team, the application crashes at startup when no wifi network is available on the Touch. The application runs correctly on the iPhone. The