On 2012-08-13, at 3:40 PM, Greg Parker wrote:
> On Aug 11, 2012, at 6:16 PM, Jayson Adams 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 any straggler devel
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 framewo
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 cell-based
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 (Cocoa-dev@list
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
Le 13 août 2012, à 23:47, Mike Abdullah 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 of the
> pointer could
On Tue, Aug 14, 2012 at 2:43 AM, Seth Willits wrote:
>
> - (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard type:(NSString
> *)type
> {
> if ([type isEqual:NSStringPboardType]) {
> if ([[pboard stringForType:type] isEqual:@"foo"]) {
> NSRang
On 14 Aug 2012, at 03:16, Alfian Busyro 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 for how to access t
On 14 Aug 2012, at 01:30, Ross Carter wrote:
>
> On Aug 12, 2012, at 5:34 AM, Gerriet M. Denkmann 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 just
>> contain a certain line.
>>
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]:
On 13 Aug 2012, at 16:56, Kyle Sluder wrote:
> On Aug 13, 2012, at 8:42 AM, Ben 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?
>
> They have custom implementation
On 13 Aug 2012, at 20:40, Greg Parker wrote:
> On Aug 11, 2012, at 6:16 PM, Jayson Adams 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 64-bit porting. What I have been r
On 2012 Aug 13, Graham Cox 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 Help Book. What do me
(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 apply
Am 12.08.2012 um 20:53 schrieb Seth Willits :
> 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 the
old feed is act
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 o
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:
http://support.a
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
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
__
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 fi
___
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:
https://lists.apple.co
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 wrote:
Thanks for your answer.
I'm looki
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 m
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
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 abou
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] :
CGContextSetFillColorWithColor: invalid context 0x0
Wed Aug 15 11:13:51 charlie-dickmans-mac-pro.local Mah-Jongg[4416] :
CGContext
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)
{
NSRange
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 codesi
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 thi
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 fi
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 lis
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 scripsit:
>
>> An idea I've vaguely wondered about would be turni
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
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.
On Aug 14, 2012, at 2:09 AM, Vincent Habchi wrote:
> Le 13 août 2012, à 23:47, Mike Abdullah 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
On Aug 14, 2012, at 3:21 AM, Gerriet M. Denkmann 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 trying to draw some
On Aug 15, 2012, at 4:46 PM, John McCall 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 also apply to
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,
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 access
On 14/08/2012, at 9:49 PM, Jerry Krinock 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 list (Cocoa-
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
On Aug 14, 2012, at 12:12 PM, Jerry Krinock 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 as be
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
> fr
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
The matches should be returned in order.
Douglas Davidson
On Aug 15, 2012, at 8:33 AM, Koen van der Drift
wrote:
> I am using NSRegularExpression to search for certain words in a
> string. To interrogate the results I use something like:
>
> NSArray *matches = [regularExpression matchesInSt
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
si
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:
On 16 Aug 2012, at 07:43, Greg Parker wrote:
> On Aug 14, 2012, at 3:21 AM, Gerriet M. Denkmann 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:didFinishLaun
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] :
> CGContextSetFillColorWithColor: invalid cont
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 messa
On Aug 14, 2012, at 9:58 PM, Marco S Hyman 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.
That said, NSIm
On Aug 14, 2012, at 11:30 PM, Jay Reynolds Freeman
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 operation of the
> NSSpe
-- Jay Reynolds Freeman
-
jay_reynolds_free...@mac.com
http://JayReynoldsFreeman.com (personal web site)
On Aug 15, 2012, at 20:31, Jens Alfke wrote:
>
> On Aug 14, 2012, at 11:30 PM, Jay Reynolds Freeman
> wrote:
>
>> I suspect that the disabling of audio for DarkWake
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 I found the following
flags that appear to have been added by Apple. There's no documentation of
them, but I infer that you
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 do
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 PM
On Aug 15, 2012, at 8:24 PM, Jens Alfke 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.
That matche
On Wed, Aug 15, 2012 at 10:39 PM, Charlie Dickman <3tothe...@comcast.net> wrote:
> 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],
May
On 16/08/2012, at 1:20 AM, Charlie Dickman <3tothe...@comcast.net> wrote:
> I have isolated their source to the following code...
But WHERE is this code?
If it's not with a view's -drawRect: method, you might not have a valid context.
--Graham
___
On Aug 15, 2012, at 8:48 PM, Rick Mann wrote:
> 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 d
Do you want custom graphics? Is this for iOS or Mac OS?
On Aug 15, 2012, at 9:48 PM, Rick Mann wrote:
> 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
On Aug 15, 2012, at 21:27 , Charles Srstka wrote:
> On Aug 15, 2012, at 8:48 PM, Rick Mann wrote:
>
>> 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 simp
On Aug 15, 2012, at 7:47 PM, Christopher Henrich wrote:
> The specification of the XML form for X3D requires that an MFString be
> enclosed in single quotes, and the enclosed strings must be enclosed in
> double quotes. Example: ' "alpha" "bravo" '.
Huh? Single vs double quotes for delimiting
XML attributes are properly formed when they are double-quoted, not single
quoted. This is why the default for NSXML is double-quoted. It is likely that
what you need to do is encode the x3d MFString before using it as the attribute
body, perhaps as simply as slash escaping the quotes: attr="\
Ah - a question I asked myself many times until I watched the WWDC videos where
clearly it was meant to be so obvious that it was perhaps assumed anyone would
just understand how to do it.
Select one button, then shift-select the other, you now have two buttons
selected. At the bottom right-ha
On Aug 15, 2012, at 6:48 PM, Rick Mann wrote:
> 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.
Sure it can. Select th
On Aug 15, 2012, at 18:49 , David Duncan wrote:
> The only thing I can imagine is if you have code that expects sizeof(int) ==
> sizeof(long) == sizeof(void*) or something along those lines.
>From the "64-Bit Transition Guide for Cocoa":
> sizeof Operator and @encode Directive
>
> Script acti
On Tue, 14 Aug 2012 21:58:38 Marco S Hyman wrote:
> The images are typically 25 MB Canon 7D raw image files that have
> been pre-alloc'ed and initWithContentsOfFile:
> The NSImageView is about 600x400 pixels.
You could try to get to a reduced resolution image (preview image). Usually Raw
files
Jens,
I vaguely recall this being covered in one of the 2010 or 2011 WWDC videos...
title was something along the lines of "Securing iOS Data."
Might be worth a look, but it looks like you found the major piece.
(Sent from my iPhone.)
--
Conrad Shultz
On Aug 15, 2012, at 20:35, Jens Alfke
On Aug 15, 2012, at 8:38 PM, Jay Reynolds Freeman
wrote:
> 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
> dow
Have you checked your fonts in Font Book to see if any would be damaged or
corrupted? Maybe there are duplicates?
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://www.nemesys-soft.com/
Logiciels Nemesys Software
71 matches
Mail list logo