Silicon Valley CocoaHeads is meeting
Thursday, November 12 at 7 p.m. (sharp)
Apple Building 4 — Garage 1 Meeting Room
As announced on Theocacao:
http://theocacao.com/document.page/609
Our featured speaker is Rob Rhyne who will give a talk on Intuitive Design for
the iPhone.
Sincerely,
Le 10 nov. 2009 à 23:51, Nick Zitzmann a écrit :
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
Hi All,
Is it possible to display an empty progress bar as shown in the attached
picture?
Thanks
Arun
attachment: Picture 1.png___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
I want to detect when the magic mouse is connected / disconnected. Can you
think about a way of accomplishing this?
Thank you very much!
Andreas___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
Is there any way to detect the type of mac a user is running my program on?
Thank you!
Andreas
___
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
On 11 Nov 2009, at 11:31, Arun wrote:
Hi All,
Is it possible to display an empty progress bar as shown in the attached
picture?
An empty progress indicator doesn't look like that on the Mac. It looks like
this:
inline: PastedGraphic-1.png
Please don't go copying UI appearances from other
On 11 Nov 2009, at 11:33, Andreas Hegenberg wrote:
I want to detect when the magic mouse is connected / disconnected. Can you
think about a way of accomplishing this?
Thank you very much!
IOKit can probably help. You can use the I/O Registry Explorer or the command
line tool ioreg to see
On 11 Nov 2009, at 11:34, Andreas Hegenberg wrote:
Is there any way to detect the type of mac a user is running my program on?
As with your previous query, this isn't really a Cocoa question.
Also, just like your previous query, the answer is probably to use IOKit (or in
this case, you could
Hi guys !
I'm trying to implement a welcome screen like the ones found in Garage Band
or Xcode : the user will be showed a window with a Create new document button
that, when clicked, show a save panel. Once saved, the application should open
the document.
I'm facing a problem when I try to
Hello,
My application is failing to catch the .flv files while searching in
Snow Leopard (10.6.1). I am using the 'spotlight searching' for this.
But the same application works well in Leopard.
What is the Uniform Type Identifier ( kMDItemContentType) to be used
in Snow Leopard to
Hi,
for me it is: com.adobe.flash.video
acquired using the command line and the command: mdls path/filename
Cheers,
Volker
Am 11.11.2009 um 14:15 schrieb Shashanka L:
Hello,
My application is failing to catch the .flv files while searching in
Snow Leopard (10.6.1). I am using the
Hi
Could I get some points on how to create a iPhone Contacts like screen. I
think parts starting from mobile number is possible with Editable Detail
view. But the Add Image and Name part is confusing. so Add image is not a
table view cell or something and if then the field for Name cannot also
Hello, why create a new one? You can use what Apple already did for you,
like ABAddressBook...
Gabe
Tharindu Madushanka schrieb:
Hi
Could I get some points on how to create a iPhone Contacts like screen. I
think parts starting from mobile number is possible with Editable Detail
view. But the
tableHeaderView
atze
Am 11.11.2009 um 14:45 schrieb Tharindu Madushanka:
Hi
Could I get some points on how to create a iPhone Contacts like screen. I
think parts starting from mobile number is possible with Editable Detail
view. But the Add Image and Name part is confusing. so
Over the past 5 years, according to Google, many people have asked why
-[NSAttributedString boundingRectWithSize:options] does not honor the proposed
height constraint, but nobody has posted the answer. Can somebody explain this
to me?
The bounding rect of myMutableAttributedString is {{0, 0},
Actually I want a similar screen to a Profile page. it will be the same but
not exactly some fields like sex, interests should be there. But with the
same look like a contacts screen.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Hi all,
I'm working with a program utilizing Core Text, but occurred to some strange
problems. When trying to reformat a document
larger than 1MB, the program crashes with the following error msg:
malloc: *** mmap(size=4,294,598,656) failed (error code=12)
*** error: can't allocate region
*** set
Any explanations for the jump?
Well, *if* an exception was thrown, of course the rest of the method was
skipped over. That's what happens when an exception is thrown, all code all
the way up the stack is skipped until the next matching catch block.
--
Scott Ribe
scott_r...@killerbytes.com
Pardon, I misread. You said:
// THIS IS TO WHERE IT SKIPS.
I thought that was:
// THIS IS WHAT IT SKIPS.
--
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice
___
Cocoa-dev mailing list
On Nov 10, 2009, at 8:56 PM, Nava Carmon wrote:
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
I'm getting a crash in -[NSTableView _isGroupRow:] in my unit tests if I try to
run the main run loop.
In my document's window, I have an NSOutlineView with its delegate and
dataSource set to the window controller. In some unit tests, I want to run the
main event loop to give some bindings a
On Wed, 11 Nov 2009 08:53:37 -0500, Bill Cheeseman b...@cheeseman.name
said:
Over the past 5 years, according to Google, many people have asked why
-[NSAttributedString boundingRectWithSize:options] does not honor the proposed
height constraint, but nobody has posted the answer. Can somebody
On 11/11/09 12:34 PM, Andreas Hegenberg said:
Is there any way to detect the type of mac a user is running my program on?
Sparkle has some code that does such things:
http://wiki.github.com/andymatuschak/Sparkle/system-profiling
--
The request is reasonable.
Please file a bug.
Thanks,
Aki
On 2009/11/11, at 5:53, Bill Cheeseman wrote:
Over the past 5 years, according to Google, many people have asked why
-[NSAttributedString boundingRectWithSize:options] does not honor the
proposed height constraint, but nobody has
On Nov 11, 2009, at 11:48 AM, Matt Neuburg wrote:
On Wed, 11 Nov 2009 08:53:37 -0500, Bill Cheeseman b...@cheeseman.name
said:
The documentation leaves me with the impression that the whole point of this
method is to return the largest rect that will honor the size constraint by
cutting off
On Tue, Nov 10, 2009 at 8:44 PM, Jim Kang jimk...@gmail.com wrote:
When I stepped through it, a sort of exception was thrown at the call to
methodSignatureForSelector (it didn't like that the selector had an argument
that was a raw pointer instead of an id or pointer to an Objective-C
On Wed, Nov 11, 2009 at 9:28 AM, Bill Cheeseman b...@cheeseman.name wrote:
What I'm trying to do is figure out how -boundingRectWithSize:option: works
and what it's good for. If it did what I understood from the documentation,
it could make some things easier. But you seem to be right: it
On Nov 11, 2009, at 04:34, Eric Morand wrote:
- (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int)
returnCode contextInfo:(void *)contextInfo {
if (returnCode == NSOKButton) {
NSPersistentDocument * newDoc = [[[NSPersistentDocument alloc]
init] autorelease];
Thanks for your replies :-) Here you can see the distortion.
Before setWantsLayer -
http://img21.imageshack.us/img21/43/screenshot20091110at412.png
After - http://img682.imageshack.us/img682/2558/screenshot20091110at424.png
Martin, I tried an NSAnimation subclass and the animation itself
Next, this is a non-standard -- and incorrect-looking -- way to create a
NSPersistentDocument. Is there a reason you're not using a
NSDocumentController method (such as 'openUntitledDocumentAndDisplay:error:')
to create it?
I don't want my user to work with a non-saved document. Ever. For
Hi,
CoreText is designed to be a core line layout engine, a building block for
full-fledged text systems like the Cocoa Text System or WebKit.
So, it's not meant for this kind of full document processing.
It's hitting the 4GB memory barrier. I can reproduce the same issue on SL
running in
Thanks a lot for the tip...
BTW, it's a RubyCocoa application. The case with zombie object was
hard to understand where does it come from...
since the object, that was reported was a ABMultiValueCoreDataWrapper
object, that was retained after it was released, but the stack showed
something
I just realized that the animation only seems to be slow when I'm
running screen capture software to capture video from my screen. Is
this just a coincidence or is it a real possibility that the capture
is slowing the animation down?
On 2009-11-11, at 11:14 AM, PCWiz wrote:
Thanks for
On Nov 11, 2009, at 8:39 AM, David Catmull wrote:
I'm getting a crash in -[NSTableView _isGroupRow:] in my unit tests if I try
to run the main run loop.
In my document's window, I have an NSOutlineView with its delegate and
dataSource set to the window controller. In some unit tests, I
On Nov 11, 2009, at 10:15, Eric Morand wrote:
I don't want my user to work with a non-saved document. Ever. For a
good reason : since you need a saved document to use the
mergeChangesFromContextDidSaveNotification method from
NSManagedObjectContext, I don't have other choice than have my
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 thought it
Hi all,
I've run into a funny crash when using -[NSString
stringWithCString:encoding:]. The code in question runs in the iPhone
Simulator. I haven't found anything on the web about this, but I found
out some things by experimenting. I have a workaround, but I'm curious
what's going on.
On Nov 11, 2009, at 11:52 AM, Christian Ziegler wrote:
In order to reuse code I find it often very handy to write little getters
which don't get their return value from an ivar but compute it somehow. I
believe this is called derived property since it derives its value from other
Thanks Quincey,
Your code pointed me in the right direction : I needed to create a persistent
store (of type NSSQLiteStoreStype) like in your example and add it to the newly
created document context.
I also replaced the file type SQLite with the correct file type defined in my
plist
In addition to what Greg said:
On Nov 11, 2009, at 1:52 PM, Christian Ziegler wrote:
A basic question here is, for any method which might as well be a
property and of course doesn't have any parameters, is it ok to use
dot-notation or should'nt you do that.
You shouldn't use dot-notation
On Nov 11, 2009, at 11:58 AM, Hank Heijink (Mailinglists) wrote:
So, I'm curious about how -[NSString initWithCString:encoding:] works.
According to the documentation, it returns An NSString object initialized
using the characters from nullTerminatedCString. Does that mean it doesn't
copy
Ok great, thanks for the answers. Besides the unnecessary @synthesize thats
exactly what I've been doing.
Cheers,
Chris
On 11.11.2009, at 21:42, Ken Thomases wrote:
In addition to what Greg said:
On Nov 11, 2009, at 1:52 PM, Christian Ziegler wrote:
A basic question here is, for any
Greetings LA CocoaHeads.
This Thursday we have quite a treat. Elliot Lee will be discussing his
iPhone app Whiteboard: Collaborative Drawing. You can check out the
app in the App Store; the exact names are
Whiteboard Lite: Collaborative Drawing (free)
Whiteboard Pro: Collaborative Drawing
how accurate is CLLocation's kCLLocationAccuracyBest? about a meter
or more? or is it hyper accurate as in centimeters? anyone know?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
Its variable. You get that information in the structures you get back. It could
be 60 meters, 40, or 10. I don't think I've ever seen anything more accurate
than 10 meters.
On Nov 11, 2009, at 3:42 PM, Chunk 1978 wrote:
how accurate is CLLocation's kCLLocationAccuracyBest? about a meter
or
Another possibility.
Since you're asking to instantiate the string with NSASCIIStringEncoding, the
method could return nil when it fails to convert the pBuffer contents (i.e.
non-ASCII bytes above 0x7F).
That would lead to trigger exception raises at the line immediately following.
That
On Nov 11, 2009, at 4:42 PM, Chunk 1978 wrote:
how accurate is CLLocation's kCLLocationAccuracyBest? about a meter
or more? or is it hyper accurate as in centimeters? anyone know?
hi-
I'd say about 10 meters to one mile.
BTW: here's an app you can use:
http://www.vvi.com/apps/spot
to
On Nov 11, 2009, at 12:31, Greg Parker wrote:
One reason to make it a proper @property is that Xcode's
autocompletion of dot notation only looks at @properties, not
methods. So `obj.i` will autocomplete to `obj.itemsSelected` only if
there is an @property itemsSelected.
If only the
Chunk 1978 wrote:
how accurate is CLLocation's kCLLocationAccuracyBest? about a meter
or more? or is it hyper accurate as in centimeters? anyone know?
I'd guess metres at best.
--
alfonso e. urdaneta
red82.com - are you ready?
___
Cocoa-dev
OK, either I'm being exceptionally dense or there's a bug in
NSProcessInfo on 10.5. If I execute:
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
int processorCount = [processInfo activeProcessorCount];
NSLog(@processorCount == %d, processorCount);
I had a situation where removeObserver:forKeyPath: was called twice for
the same receiver (an NSUserDefaultsController), the same observer, and
the same key path. It threw an NSRangeException. But the KVO docs
don't say anything about removeObserver:forKeyPath: throwing an
exception. Should
2009/11/11 Ben Haller bhcocoa...@sticksoftware.com:
OK, either I'm being exceptionally dense or there's a bug in NSProcessInfo
on 10.5. If I execute:
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
int processorCount = [processInfo activeProcessorCount];
On Nov 11, 2009, at 5:35 PM, James Walker wrote:
I had a situation where removeObserver:forKeyPath: was called twice for the
same receiver (an NSUserDefaultsController), the same observer, and the same
key path. It threw an NSRangeException. But the KVO docs don't say anything
about
On 11-Nov-09, at 6:19 PM, Shawn Erickson wrote:
IIRC the latest Mac Pro system use Xeon processors that are HT
(hyper-threading, aka SMT) capable, each core is capable of running
two threads concurrently. This gives you 16 logical cores even
though you only have 8 physical cores.
Try the
On 2009 Nov 11, at 15:36, Jim Correia wrote:
Cocoa reserves the use of exceptions for programming errors an
unexpected runtime errors.
:))
Trying to remove an observer for a key path which has already been
removed (or never registered) falls into the programming error
class...
Almost
On Wed, 11 Nov 2009 18:16:11 -0500, Ben Haller
bhcocoa...@sticksoftware.com said:
This policy seems to imply that windows can live on their own,
without a reference to them from the outside world (because the window
list references them), but panels cannot; a panel has to be strong-
referenced
Consumer-grade GPS is still limited to 30 meters (stationary) or 10 meters
(in-motion).
The reason for the better accuracy for in-motion has (basically) to do with
doppler effect.
On Nov 11, 2009, at 1:42 PM, Chunk 1978 wrote:
how accurate is CLLocation's kCLLocationAccuracyBest? about a
On Wed, Nov 11, 2009 at 4:41 PM, Glenn L. Austin gl...@austin-soft.com wrote:
Consumer-grade GPS is still limited to 30 meters (stationary) or 10 meters
(in-motion).
The reason for the better accuracy for in-motion has (basically) to do with
doppler effect.
Well DGPS or WAAS can improve
On Wed, Nov 11, 2009 at 2:35 PM, James Walker jam...@frameforge3d.com wrote:
I had a situation where removeObserver:forKeyPath: was called twice for the
same receiver (an NSUserDefaultsController), the same observer, and the same
key path. It threw an NSRangeException. But the KVO docs don't
True. I'd better check for that - thanks! However, I'd have gotten a
crash at that line, not confused memory management. I'm not catching
any exceptions that would muffle this one.
Hank
On Nov 11, 2009, at 5:07 PM, Aki Inoue wrote:
Another possibility.
Since you're asking to instantiate
But as I understand, Cocoa Test System, the NSLayoutManager and its
supplementary classes are built upon Core Text. So if Core Text doesn't
work, there's no reason cocoa test would succeedl, right?
DairyKnight
On Thu, Nov 12, 2009 at 2:20 AM, Aki Inoue a...@apple.com wrote:
Hi,
CoreText is
Yes, CoreText is our core layout technology, and the Text System is built upon
it.
The difference is that the Text System utilizes the framework as its layout
engine and provides functionalities beyond.
For example, efficiently working with large documents is one of the
higher-level additions
Multi-channels do better than single channel units, but in general GPS
(in open areas) can get you within 10m. Ground reference calibrations (what
you get with the mentioned auxiliary systems) can do better. It also helps
if you happen to have a Cesium time standard attached to your iPhone.
Hi,
With respect to the example,
http://developer.apple.com/mac/library/samplecode/RoundTransparentWindow/
I wanted to move the window with mouse drag. How can I do that?
Regards
Symadept
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On Nov 11, 2009, at 7:57 PM, Symadept wrote:
Hi,
With respect to the example,
http://developer.apple.com/mac/library/samplecode/RoundTransparentWindow/
I wanted to move the window with mouse drag. How can I do that?
Did you actually spend any time reading that code before firing off to
I'd appreciate some insight... alas, I don't have much good info... I
was running my app from Xcode... my app's window suddenly disappeared,
and GDB started up, so I opened the Debugger window. There was no
textual indication of why the app had died (that is, _no_ display of
something like
On Nov 11, 2009, at 8:50 PM, Symadept wrote:
How to close/minimize the app programmatically.
To close the app, call -[NSApplication terminate:].
I tried the following way
but no luck.
[[NSApp mainWindow] performMiniaturize:nil];
This will only miniaturize the main window, and it
yes...its working...
Thanks again,
Shashank Lagvankar
On 11-Nov-09, at 7:10 PM, Volker in Lists wrote:
Hi,
for me it is: com.adobe.flash.video
acquired using the command line and the command: mdls path/filename
Cheers,
Volker
Am 11.11.2009 um 14:15 schrieb Shashanka L:
Hello,
My
Hi,
How to close/minimize the app programmatically. I tried the following way
but no luck.
[[NSApp mainWindow] performMiniaturize:nil];
[OR]
[NSApp miniaturizeAll:self];
And close should not terminate my app, it should place an icon in the Dock,
I hope it would be the
Hi,
How to register a callback for Volume Change and Mute/Unmute of audio
device.
Regards
Symadept
___
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
Hi,
How to Mute/Unmute audio device.
Regards
Mustafa
___
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
Actually I wanted to hide the app when close button is closed such that it
shall be active still. Which I was doing. I was basically facing the problem
with Minimize the app. I don't know why the NSApp
miniaturizeAll:selfhttp://discussions.apple.com/;
is not functioning as expected.
Regards
On Wed, Nov 11, 2009 at 10:31 AM, Bill Cheeseman b...@cheeseman.name wrote:
Well, it is sometimes useful to be able to get the bounding rect that a
string will have after it is laid out and wrapped to a specified constraint
size, such as a fixed width but an open-ended height. For example,
In the app I'm developing I connect to a server, to request some data. This
works fine. An authentication challenge is received and processed, and the
connection performs beautifully. If however I then change the
username/password, and attempt to connect again, the authentication is refused
by
are you definitely receiving a challenge the *second* time you run the
app? It is possible that the server sends a cookie representing the
login which the phone has now cached and is sending along with the
request (automatically) which is failing the login.
One thing you could try to see if
75 matches
Mail list logo