Re: 32-bit on 10.8

2012-08-15 Thread Peter Teeson
On 2012-08-13, at 3:40 PM, Greg Parker wrote: On Aug 11, 2012, at 6:16 PM, Jayson Adams jay...@circusponies.com wrote: What I have been ranting and raving about is the fact that the 64-bit porting guide currently states that you may not want to move to 64-bit. That is the official advice

Re: PubSub Framework Alternative

2012-08-15 Thread Jeff Johnson
On Aug 12, 2012, at 1:53 PM, Seth Willits wrote: I find it somewhat surprising that there are dozens of Mac and iOS feed readers out there, but no major open source Cocoa alternative to PubSub. FWIW, the feed reader Vienna is open source: http://www.vienna-rss.org/ It's not really

Re: Alternative method for makeViewWithIdentifier

2012-08-15 Thread Alfian Busyro
Thanks for your answer. I'm looking at cell-based table view right now, It's seems like it's pretty not dynamically to make a custom view of the cell view. do you have any idea to custom it ? So actually I looking for how to access the table cell view components without change it to

Window Title drop-down menu in 10.8

2012-08-15 Thread James Merkel
In 10.8, what capabilities does a window need in order for it to have the window title drop down menu? My windows don't seem to have this feature. Does the window need to be document based? Thanks, Jim Merkel ___ Cocoa-dev mailing list

Re: __weak pointer collection firing prematurely???

2012-08-15 Thread Britt Durbrow
OK, I think I've isolated the issue... basically, __weak, @public, and -fno-objc-arc don't like to play nice together. If you set a @public __weak instance variable (may also apply to stack variables, I haven't tested that yet) in a file compiled with -fno-objc-arc, and then access it in a file

Re: Classes incompatible with weak references

2012-08-15 Thread Vincent Habchi
Le 13 août 2012, à 23:47, Mike Abdullah cocoa...@mikeabdullah.net scripsit: An idea I've vaguely wondered about would be turning the isa variable into a tagged pointer. If you know nothing is accessing it directly (to do so was deprecated with the modern runtime), then, say, the last 4 bits

Re: NSTextView paste:

2012-08-15 Thread ecir hana
On Tue, Aug 14, 2012 at 2:43 AM, Seth Willits sli...@araelium.com wrote: - (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard type:(NSString *)type { if ([type isEqual:NSStringPboardType]) { if ([[pboard stringForType:type] isEqual:@foo]) {

Re: Alternative method for makeViewWithIdentifier

2012-08-15 Thread Mike Abdullah
On 14 Aug 2012, at 03:16, Alfian Busyro alfian.bus...@kddi-web.com wrote: Thanks for your answer. I'm looking at cell-based table view right now, It's seems like it's pretty not dynamically to make a custom view of the cell view. do you have any idea to custom it ? So actually I looking

Re: How to size a TextView to fit a given line?

2012-08-15 Thread Gerriet M. Denkmann
On 14 Aug 2012, at 01:30, Ross Carter rosscarter...@me.com wrote: On Aug 12, 2012, at 5:34 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: In windowWillUseStandardFrame:defaultFrame: in a subclass of NSDocument (which is also the delegate of it's window) I want to set the window to

Mountain Lion crashes Simulator

2012-08-15 Thread Gerriet M. Denkmann
I have an app which works fine under Lion, but with 10.8 (Xcode 4.4.1) it crashes the Springboard in the Simulator (both iPhone and iPad). It never gets to: application:didFinishLaunchingWithOptions: Console log has several lines like: 14/08/2012 15:40:52.411 com.apple.launchd.peruser.502[129]:

Re: Classes incompatible with weak references

2012-08-15 Thread Mike Abdullah
On 13 Aug 2012, at 16:56, Kyle Sluder k...@ksluder.com wrote: On Aug 13, 2012, at 8:42 AM, Ben ben_cocoa_dev_l...@yahoo.co.uk wrote: I see in the documentation - and from a compiler error - that some classes are not compatible with weak references. What makes these classes incompatible?

Re: 32-bit on 10.8

2012-08-15 Thread Mike Abdullah
On 13 Aug 2012, at 20:40, Greg Parker gpar...@apple.com wrote: On Aug 11, 2012, at 6:16 PM, Jayson Adams jay...@circusponies.com wrote: Poor reading skills are keeping this thread alive. No, I have not been saying anything related to whatever work I may or may not have that's related to

Re: Help Indexer error - what does it MEAN?

2012-08-15 Thread Jerry Krinock
On 2012 Aug 13, Graham Cox graham@bigpond.com wrote: Thanks! I was able to index my help by doing it in 10.7. (I tried 4.2, the latest I could find, and it doesn't work). No thanks! This means that my one-click shipping script is going to have to call over to another Mac to build the

Re: __weak pointer collection firing prematurely???

2012-08-15 Thread Britt Durbrow
(Um... looks like the list server ate my previous attempt to send this... so if you're getting this twice, sorry!) OK, I think I've isolated the issue... basically, __weak, @public, and -fno-objc-arc don't like to play nice together. If you set a @public __weak instance variable (may also

Re: PubSub Framework Alternative

2012-08-15 Thread Andreas Mayer
Am 12.08.2012 um 20:53 schrieb Seth Willits sli...@araelium.com: The problem I'm having right now is if I add a feed, remove that feed, then add a new feed with the same URL, grabbing the entries throws assertions. Hm. I don't seem to have this problem. I guess I'd need to make sure that

Problem displaying progress indicator in dock icon

2012-08-15 Thread Tim Hewett
My app has been displaying a progress indicator superimposed over the dock icon successfully until more recent MacOS versions. With the latter it appears as a black bar instead of blue (currently testing on Mountain Lion but suspect Lion has the same problem, Snow Leopard and previous ones are

Re: How do I get memory usage numbers?

2012-08-15 Thread Greg Guerin
Charlie Dickman wrote: What I want to do is determine the ratio of inactive to free in order to determine when to execute the purge command to free up the inactive memory before the system gets into trouble. It's unnecessary to purge or free Inactive memory. Quoting from:

#warning 64BIT: Inspect use of sizeof

2012-08-15 Thread Jerry Krinock
When I run Apple's CocoaConvert64 tool on a source file, it flags wherever I've invoked sizeof() with #warning 64BIT: Inspect use of sizeof However when I read Apple's 64-Bit Transistion Guide, sizeof() is only mentioned as being a great thing which should be used liberally. And that makes

UIPickerView

2012-08-15 Thread koko
If I spin wheel of a UIPicker viewand need to pick up my finger to spin some more the item under the selection indicator is chosen. Now I have to go back the the UIPickerView to scroll to my desired selection. How can I make it not 'auto-select' and only select with a tap ? -koko

Applying iOS file protection to SQLite databases

2012-08-15 Thread Jens Alfke
How can I enable full file protection (encryption) on iOS for SQLite databases? The obvious, easy part is setting the NSFileProtectionComplete attribute on the SQLite database file after it's first created. Presumably this attribute will stick, because I don't think SQLite every recreates the

list mail not coming through today anyone else have this problem?

2012-08-15 Thread Peter Teeson
___ 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 Help/Unsubscribe/Update your Subscription:

Re: Alternative method for makeViewWithIdentifier

2012-08-15 Thread Alfian Busyro
You're right. After I looked at Apple Documentation. I realized it. And exactly like what your told, I have to getting use with NSCell old fashion. With Regards, Alfian. On 12/08/14 17:44, Mike Abdullah wrote: On 14 Aug 2012, at 03:16, Alfian Busyro alfian.bus...@kddi-web.com wrote: Thanks

Why no keyboard or mousedown events?

2012-08-15 Thread Charlie Dickman
When my app is running menu bar requests are honored in a timely fashion but neither keyboard shortcuts nor mouse clicks not in the menu bar are. Can anybody tell me why and what to do about it? Charlie Dickman 3tothe...@comcast.net ___ Cocoa-dev

Speed up image display for large raw images?

2012-08-15 Thread Marco S Hyman
Hi All, I'm looking for some suggestions in speeding up image display. This bit of code is called when a table view selection changes. It can take 2-4 seconds for the image to be displayed in a related NSImageView. - (void) showImageForIndex: (NSInteger) ix { NSImage *image = nil; if (ix

NSSpeechSynthesizer / DarkWake interaction

2012-08-15 Thread Jay Reynolds Freeman
I have an app that uses the callback speechSynthesizer:didFinishSpeaking: from NSSpeechSynthesizerDelegate to synchronize things at the end of an utterance. I am not sure what happens if I tell my NSSpeechSynthesizer instance to start speaking while the Macintosh is in DarkWake, and also about

Where do these come from...

2012-08-15 Thread Charlie Dickman
I have been getting the following messages in the console window while my program is running... Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] Error: CGContextSetFillColorWithColor: invalid context 0x0 Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] Error:

order of NSRegularExpression matchesInString result

2012-08-15 Thread Koen van der Drift
I am using NSRegularExpression to search for certain words in a string. To interrogate the results I use something like: NSArray *matches = [regularExpression matchesInString: myString options:0 range: NSMakeRange(0, [myString length])]; for (NSTextCheckingResult *match in matches) {

How to sandbox an included framework

2012-08-15 Thread Antonio Nunes
After a number of successful submissions of my sandboxed app tot he App Store, today Apple decided to reject my app because one of the 3rd party frameworks it includes and links against is not sandboxed. I don't recall hearing about sandboxing frameworks separately. I know they need to be

Trying to find workarounds for serious memory leak in IKImageView

2012-08-15 Thread Eric Wing
I just discovered IKImageView leaks a huge amount of memory (possibly the entire image data) when quickly releasing an instance and then creating a new one and do it again. There are also smaller memory leaks in the implementation reported by the Instruments Leaks tool. Based on my analysis, I

Applying iOS file protection to SQLite databases

2012-08-15 Thread Jens Alfke
How can I enable full file protection (encryption) on iOS for SQLite databases? The obvious, easy part is setting the NSFileProtectionComplete attribute on the SQLite database file after it's first created. Presumably this attribute will stick, because I don't think SQLite every recreates the

Re: Trying to find workarounds for serious memory leak in IKImageView

2012-08-15 Thread Eric Wing
An update: I tried to use the performSelector:withDelay workaround in my main app. It doesn't seem to work there for reasons I can't explain. So I'm pretty stuck up a creek now. Any other ideas greatly appreciated. Thanks, Eric ___ Cocoa-dev mailing

Re: Classes incompatible with weak references

2012-08-15 Thread Stevo Brock
Ahh the Atari ST… Now those are fond memories indeed… -Stevo Brock Sunset Magicwerks, LLC www.sunsetmagicwerks.com 818-609-0258 On Aug 14, 2012, at 12:09 AM, Vincent Habchi wrote: Le 13 août 2012, à 23:47, Mike Abdullah cocoa...@mikeabdullah.net scripsit: An idea I've vaguely

Re: __weak pointer collection firing prematurely???

2012-08-15 Thread John McCall
On Aug 13, 2012, at 11:38 PM, Britt Durbrow wrote: OK, I think I've isolated the issue... basically, __weak, @public, and -fno-objc-arc don't like to play nice together. If you set a @public __weak instance variable (may also apply to stack variables, I haven't tested that yet) in a file

Re: Classes incompatible with weak references

2012-08-15 Thread Kyle Sluder
On Tue, Aug 14, 2012, at 12:09 AM, Vincent Habchi wrote: Using part of pointer to do something else than record an address is perilous. NSNumber does exactly that on 10.7 and higher. Tagged pointers are a well-understood technique. You just have to be careful not to dereference them directly.

Re: Classes incompatible with weak references

2012-08-15 Thread Charles Srstka
On Aug 14, 2012, at 2:09 AM, Vincent Habchi vi...@macports.org wrote: Le 13 août 2012, à 23:47, Mike Abdullah cocoa...@mikeabdullah.net scripsit: An idea I've vaguely wondered about would be turning the isa variable into a tagged pointer. If you know nothing is accessing it directly (to do

Re: Mountain Lion crashes Simulator

2012-08-15 Thread Greg Parker
On Aug 14, 2012, at 3:21 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have an app which works fine under Lion, but with 10.8 (Xcode 4.4.1) it crashes the Springboard in the Simulator (both iPhone and iPad). It never gets to: application:didFinishLaunchingWithOptions: SpringBoard is

Re: __weak pointer collection firing prematurely???

2012-08-15 Thread Britt Durbrow
On Aug 15, 2012, at 4:46 PM, John McCall rjmcc...@apple.com wrote: On Aug 13, 2012, at 11:38 PM, Britt Durbrow wrote: OK, I think I've isolated the issue... basically, __weak, @public, and -fno-objc-arc don't like to play nice together. If you set a @public __weak instance variable (may

Re: Problem displaying progress indicator in dock icon

2012-08-15 Thread Lee Ann Rucker
When you say superimposed over the dock icon, do you mean you use [NSApp dockTile], or actually put an NSPanel over the dock? I'm using dockTile to put up a progress bar - it's a custom one that's gray white, but it works fine. The sample app for dockTile is easily tweaked. On Aug 14, 2012,

Re: Classes incompatible with weak references

2012-08-15 Thread Britt Durbrow
That exists already in Lion with NSNumber objects: some types of pointers to NSNumbers actually use the low bits of the pointer to indicate the type and the rest of the pointer to pack the value; resulting in not needing to actually allocate an object off the heap (which is why direct isa

Re: Help Indexer error - what does it MEAN?

2012-08-15 Thread Graham Cox
On 14/08/2012, at 9:49 PM, Jerry Krinock je...@ieee.org wrote: What do mean by doesn't work? I mean I get a whole bunch of errors of the type I mentioned at the start of this thread and the index file is useless. --Graham ___ Cocoa-dev mailing

Basic constraints: Cancel OK buttons

2012-08-15 Thread Rick Mann
So, here's a basic question about constraints: How do I make a sheet with Cancel and OK buttons, such that the two buttons keep the same width? This doesn't seem possible to do by simply dropping a couple buttons in IB. I'm sure it can be done programmatically, although I'm not sure of the best

Re: #warning 64BIT: Inspect use of sizeof

2012-08-15 Thread David Duncan
On Aug 14, 2012, at 12:12 PM, Jerry Krinock je...@ieee.org wrote: When I run Apple's CocoaConvert64 tool on a source file, it flags wherever I've invoked sizeof() with #warning 64BIT: Inspect use of sizeof However when I read Apple's 64-Bit Transistion Guide, sizeof() is only mentioned

Re: Where do these come from...

2012-08-15 Thread Stephen J. Butler
On Wed, Aug 15, 2012 at 10:20 AM, Charlie Dickman 3tothe...@comcast.net wrote: [[NSColor whiteColor] set]; [die1 drawInRect: iDieDrawRect fromRect: imageRect1 operation: NSCompositeSourceOver

Perplexity with X3D and XML

2012-08-15 Thread Christopher Henrich
I am working on an app which will, among other things, write out an X3D file, in XML format. (Background: X3D is a language for describing three-dimensional scenes*; one way to put an X3D scene in a file is to use XML.) Some of the X3D fields, which map to attributes of XML nodes, are of the

Re: order of NSRegularExpression matchesInString result

2012-08-15 Thread Douglas Davidson
The matches should be returned in order. Douglas Davidson On Aug 15, 2012, at 8:33 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: I am using NSRegularExpression to search for certain words in a string. To interrogate the results I use something like: NSArray *matches =

Displaying a sheet immediately after a window is opened

2012-08-15 Thread Rick Mann
After googling, I found that in -[NSDocument windowControllerDidLoadNib], I had to begin my sheet by calling performSelector on the main thread (actually I scheduled a block operation). This is kinda gross, but seems to work. Unfortunately, the result is that the main window animates opening

Re: Where do these come from...

2012-08-15 Thread Charlie Dickman
Here's the whole method... it is being called from within a view's drawRect method... - (void) showDiceAtX: (float) x Y: (float) y { NSRect imageRect1, imageRect2; NSImage *die1 = nil, *die2 = nil; iDie = iRand(1, 6); switch (iDie) { case 1:

Re: Mountain Lion crashes Simulator

2012-08-15 Thread Gerriet M. Denkmann
On 16 Aug 2012, at 07:43, Greg Parker gpar...@apple.com wrote: On Aug 14, 2012, at 3:21 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have an app which works fine under Lion, but with 10.8 (Xcode 4.4.1) it crashes the Springboard in the Simulator (both iPhone and iPad). It never

Re: Where do these come from...

2012-08-15 Thread Kyle Sluder
On Aug 15, 2012, at 8:20 AM, Charlie Dickman 3tothe...@comcast.net wrote: I have been getting the following messages in the console window while my program is running... Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] Error: CGContextSetFillColorWithColor: invalid

Re: Where do these come from...

2012-08-15 Thread Stephen J. Butler
On Wed, Aug 15, 2012 at 10:02 PM, Charlie Dickman 3tothe...@comcast.net wrote: Here's the whole method... it is being called from within a view's drawRect method... Are you calling drawRect directly from your code? If so, don't do that. You should be sending one of the setNeedsDisplay

Re: Speed up image display for large raw images?

2012-08-15 Thread Jens Alfke
On Aug 14, 2012, at 9:58 PM, Marco S Hyman m...@snafu.org wrote: The images are typically 25 MB Canon 7D raw image files that have been pre-alloc'ed and initWithContentsOfFile: NSImage doesn't actually load the image pixels until it needs to. Merely initializing an instance won't do it.

Re: NSSpeechSynthesizer / DarkWake interaction

2012-08-15 Thread Jens Alfke
On Aug 14, 2012, at 11:30 PM, Jay Reynolds Freeman jay_reynolds_free...@mac.com wrote: I suspect that the disabling of audio for DarkWake is at the hardware level, so that NSSpeechSynthesizer doesn't even know DarkWake is active, but I am not sure. Does anyone know if DarkWake affects the

Re: NSSpeechSynthesizer / DarkWake interaction

2012-08-15 Thread Jay Reynolds Freeman
-- Jay Reynolds Freeman - jay_reynolds_free...@mac.com http://JayReynoldsFreeman.com (personal web site) On Aug 15, 2012, at 20:31, Jens Alfke j...@mooseyard.com wrote: On Aug 14, 2012, at 11:30 PM, Jay Reynolds Freeman jay_reynolds_free...@mac.com wrote: I suspect

Re: Applying iOS file protection to SQLite databases

2012-08-15 Thread Jens Alfke
On Aug 15, 2012, at 4:16 PM, I wrote: How can I enable full file protection (encryption) on iOS for SQLite databases? To answer my own question: buried down inside sqlite3.h I found the following flags that appear to have been added by Apple. There's no documentation of them, but I infer

Re: NSSpeechSynthesizer / DarkWake interaction

2012-08-15 Thread Jay Reynolds Freeman
Sorry for the previous blank message, messed up cut/paste on my iPad. I thought that DarkWake was the name for the advanced form of Power Nap on 10.8; in any case that is what I meant. I *think* I understand that the system can put apps of its choice into that mode (audio and console powered

Re: Where do these come from...

2012-08-15 Thread Charlie Dickman
I DO NOT call drawRect directly. I DO call [self setNeedsDisplay: YES] to keep things going. All drawing is done from inside drawRect which has been invoked through the use of [self setNeedsDisplay: YES], On Aug 15, 2012, at 11:19 PM, Stephen J. Butler wrote: On Wed, Aug 15, 2012 at 10:02

Re: Speed up image display for large raw images?

2012-08-15 Thread Marco S Hyman
On Aug 15, 2012, at 8:24 PM, Jens Alfke j...@mooseyard.com wrote: The images are typically 25 MB Canon 7D raw image files that have been pre-alloc'ed and initWithContentsOfFile: NSImage doesn't actually load the image pixels until it needs to. Merely initializing an instance won't do it.