On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
wrote:
> I have a non document based application, I quit the app by sending terminate
> to NSApplication(file owner). if I close the main window, application will
> not be closed, what I'd like is, when user close the main window, application
> also
On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
> wrote:
>> I have a non document based application, I quit the app by sending terminate
>> to NSApplication(file owner). if I close the main window, application will
>> not be closed, what I'd like
I am still getting to grips with objective C, coming from a C++ background, and
I'm stuck on a particular aspect of the base class/subclass model that I hope
somebody can help me with.
I need an object representing a video camera plugged into the mac, a camera
which may be one of several models
On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
> wrote:
>> I have a non document based application, I quit the app by sending terminate
>> to NSApplication(file owner). if I close the main window, application will
>> not be closed, what I'd like
Le 18 juin 2010 à 12:44, Jonny Taylor a écrit :
> I am still getting to grips with objective C, coming from a C++ background,
> and I'm stuck on a particular aspect of the base class/subclass model that I
> hope somebody can help me with.
>
> I need an object representing a video camera plugge
On Jun 18, 2010, at 3:51 AM, Jean-Daniel Dupas wrote:
>
> On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
>
>> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
>> wrote:
>>> I have a non document based application, I quit the app by sending
>>> terminate to NSApplication(file owner). if I close
Thanks, applicationShouldTerminateAfterLastWindowClosed works.
Now I'd like to prompt user if he really wants to quit, if not, return NO, that
seems working as well.
--- 2010年6月18日 星期五,Kyle Sluder 寫道﹕
寄件人: Kyle Sluder
主題: Re: terminates app when main window closes
收件人: "Angelo Chen"
副本(CC): c
I've just been looking back at some code that has been working fine for me for
a while, and as far as I can see it shouldn't actually work! I'd be interested
for peoples' comments. The code is as follows:
dispatch_async(queue1,
^{
NSImage *theImage = [frame GetNSImage];
NSData *t
Thanks for your reply Jean-Daniel.
>> I can see two ways of working around this - either implement placeholder
>> methods in the base class (that raise an exception or something) in order to
>> make the base class conform to the protocol (knowing that in practice they
>> should always be overri
Blocks do retain objects that are passed in, so that's probably what's
happening. Also, keep in mind that autoreleased objects aren't freed
immediately; it happens when the run loop completes. You should always act as
if it does happen immediately, but it isn't always true.
Jeff Kelley
On Jun
"Is the compiler/runtime being clever enough to retain it because it is
going to be needed in the inner block (if so: very clever!)?"
Yes, it is very clever.
When creating the block, the ObjC compiler also specifies the Object stored
into the block metadata. When the block is copied (which is don
Le 18 juin 2010 à 17:05, Jonny Taylor a écrit :
> Thanks for your reply Jean-Daniel.
>
>>> I can see two ways of working around this - either implement placeholder
>>> methods in the base class (that raise an exception or something) in order
>>> to make the base class conform to the protocol (
On 18 Jun 2010, at 16:00, Jonny Taylor wrote:
> I've just been looking back at some code that has been working fine for me
> for a while, and as far as I can see it shouldn't actually work! I'd be
> interested for peoples' comments. The code is as follows:
>
> dispatch_async(queue1,
> ^{
>
On Jun 18, 2010, at 9:20 AM, Mike Abdullah wrote:
> Aside from your actual question, I urge you to go back and read the Cocoa
> fundamentals. Your method names are totally wrong,
I only saw one error: the method name “GetNSImage” should probably be “image”
(method names should be lowercase unl
http://kvlbehqiqu.modestmuch.ru
___
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 y
[theImage release] is really suspicious.
On Friday, June 18, 2010, Jens Alfke wrote:
>
> On Jun 18, 2010, at 9:20 AM, Mike Abdullah wrote:
>
>> Aside from your actual question, I urge you to go back and read the Cocoa
>> fundamentals. Your method names are totally wrong,
>
> I only saw one error
Moderators: please look into this SPAM account.
Sent from my iPhone
On Jun 18, 2010, at 12:58 PM, Brad Peterson wrote:
http://kvlbehqiqu.modestmuch.ru
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or m
First, the objects are retained by dispatch_async as others have mentioned.
Second, I'm not sure why you used 2 queues for the tasks in your code, seems
overly complex. Async queues are serialized, which means that you can continue
to add to the queue and the jobs will be done in order which t
> [theImage release] is really suspicious.
Suspicious in what way? Are you saying I am using the wrong sort of
implementation for my [frame GetNSImage], and I shouldn't be returning
something that requires an explicit release? Because I can certainly confirm
that in its current state it leaks me
> First, the objects are retained by dispatch_async as others have mentioned.
> Second, I'm not sure why you used 2 queues for the tasks in your code, seems
> overly complex. Async queues are serialized, which means that you can
> continue to add to the queue and the jobs will be done in order
On Jun 18, 2010, at 1:02 PM, Jens Alfke wrote:
>> and the memory management guide covers all the details of -autorelease.
>
> Has it been extended to discuss objects referenced inside blocks? That’s a
> pretty tricky detail.
The current version of that document doesn’t appear to have been.
Th
On Jun 17, 2010, at 19:17, Nick Zitzmann wrote:
>
> On Jun 17, 2010, at 4:52 PM, Laurent Daudelin wrote:
>
>> I'm just starting to explore DVD playback and downloaded the
>> "CocoaDVDPlayer" sample. Did a build and started it in the debugger. As soon
>> as it calls "DVDInitialize()", the appli
Hi,
I need a way to select a file programmatically in browser list of
NSOpenPanel based on some user action, while the panel is running.
Similar to Navigation services NavCustomControl() with
NavCustomControlMessage:kNavCtlSetSelection.
- Sanyam
__
On Jun 18, 2010, at 12:09 PM, Tony Romano wrote:
> First, the objects are retained by dispatch_async as others have mentioned.
> Second, I'm not sure why you used 2 queues for the tasks in your code, seems
> overly complex. Async queues are serialized, which means that you can
> continue to
On Jun 18, 2010, at 15:15, Jonny Taylor wrote:
>> [theImage release] is really suspicious.
> Suspicious in what way? Are you saying I am using the wrong sort of
> implementation for my [frame GetNSImage], and I shouldn't be returning
> something that requires an explicit release? Because I can c
I did notice the inner block was running on a second q, that's what my comment
is about. I guess the first block what's really in questioned, how big is the
images?? If it will block, then put it in the same block as the write. I'm
assuming you want he image transformed prior to the write.
-
Because you make 2 queues, doesn't mean internally they will operate on
separate cores/threads. GCD may coalesce these based on system resources. I
agree with the best practice you outlined; however, the example in this email
thread has 2 queues within the same subsystem. So there must be som
Jens Alfke wrote:
I only saw one error: the method name “GetNSImage” should probably
be “image” (method names should be lowercase unless they begin with
a common acronym like “URL” or “TIFF”, and the prefix “get” is not
used.)
Also See These Methods Three:
[[frame Camera] ExportFil
On Jun 17, 2010, at 4:37 PM, Laurent Daudelin wrote:
> Does anyone know if it would be remotely possible to capture the video stream
> sent to the window to stream it somewhere else?
No; this would be near the top of the list of things the MPAA really does not
want people to be able to do with
There is no API to do this, sorry. Please log feature requests asking to do it.
corbin
On Jun 17, 2010, at 11:32 PM, Sanyam Jain wrote:
> Hi,
>
>
>
> I need a way to select a file programmatically in browser list of
> NSOpenPanel based on some user action, while the panel is running.
>
> Sim
Well, the problem seems to have been fixed.
I tried replacing every instance of MRWorkspaceItemLayer with a regular CALayer
instance, and it seemed to work fine, meaning my problem was actually in the
MRWorkspaceItemLayer subclass. Seemed everytime I would unselect then select
an item, the MRW
That depends on how you define "subsystem". I see nothing wrong with the way
the op is structuring this (i.e. doing the transformation on one serial queue,
and doing the writing on another queue. This allows many if the transformations
to complete without ever waiting on the disk, yet still seri
Scenario: Adding a new node to a NSOutlineView backed by a NSTreeController.
1. Create a new internal object add add it to the data store(file system).
This will be my representedObject in the treecontroller
2. Compute the path and call insertObject:atArrangedObjectIndexPath:
the treecontrolle
Hi.
I pulled my hair way too long for this issue and finally
decided to solve the problem of the UINavigationBar's
topItem's titleView *not* being centred when either of
the other two sides had an UIBarButtonItem by ...
subclassing UINavigationBar!
All my attempts at manipulating the titleView's
I solved this my not adding the file to the store until after the insert is
completed in the controller. The side effect is if the file system operation
fails, I have to back out the node inserted into the tree which seems
counterintuitive(i.e. I should only add the node if the model successful
iPhone
Hi. I need to display the time zone in which a particular time is displayed.
The time zone is created from its full POSIX name (i.e. "Asia/Oral"), but when
I ask the NSTimeZone for its abbreviation, I often get abbreviations in the
form of "GMT+05:00" instead of "RST" (or whatever is app
Suspicious because it clearly does not follow ObjC coding style for
memory management.
If you have to call release here, it's likely because GetNSImage is
incorrect by returning an object that needs to be released.
If your code happens not to use C++ (or in very localized places), you
should run
I'm unable to log in. Anyone else?
--
Rick
___
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/Upd
I'm able to get logged in.
Ryan
On Jun 18, 2010, at 10:10 PM, Rick Mann wrote:
> I'm unable to log in. Anyone else?
>
> --
> Rick
>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator com
Thanks. As soon as I click the "Log In" button on the iPhone Dev Center home
page, I get "An Internal Server Error Has Occurred" on an otherwise blank page.
Mac OS Dev Center shows me as logged in.
--
Rick
On Jun 18, 2010, at 19:13:15, Ryan C. Payne wrote:
> I'm able to get logged in.
>
> Rya
Is there something weird going on? My problem is with "iTunes Connect" -- I
sign in and get to the main page, but whenever I click on anything like "Manage
Your Applications" or "Contracts Tax and Banking Information" (or even "Contact
Us"!), it takes me to a page where I dutifully re-enter my
Brad,
I am experiencing the same thing you are reporting with iTunes Connect...
Ryan
On Jun 18, 2010, at 10:28 PM, Brad Garton wrote:
> Is there something weird going on? My problem is with "iTunes Connect" -- I
> sign in and get to the main page, but whenever I click on anything like
> "Man
Guys,
Not appropriate for this list. Technical discussions only please.
If the devforums are up, use those. Otherwise assume that it’s being actively
corrected.
Scott
Moderator
On Jun 18, 2010, at 10:31 PM, Ryan C. Payne wrote:
> Brad,
>
> I am experiencing the same thing you are reporti
On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
> iPhone
>
> Hi. I need to display the time zone in which a particular time is displayed.
> The time zone is created from its full POSIX name (i.e. "Asia/Oral"), but
> when I ask the NSTimeZone for its abbreviation, I often get abbreviations in
>
On Jun 18, 2010, at 21:15:58, David Rowland wrote:
>
> On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
>
>> iPhone
>>
>> Hi. I need to display the time zone in which a particular time is displayed.
>> The time zone is created from its full POSIX name (i.e. "Asia/Oral"), but
>> when I ask the NS
On Jun 18, 2010, at 9:19 PM, Rick Mann wrote:
> On Jun 18, 2010, at 21:15:58, David Rowland wrote:
>
>>
>> On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
>>
>>> iPhone
>>>
>>> Hi. I need to display the time zone in which a particular time is
>>> displayed. The time zone is created from its fu
On Jun 18, 2010, at 21:21:32, David Rowland wrote:
>
> On Jun 18, 2010, at 9:19 PM, Rick Mann wrote:
>
>> On Jun 18, 2010, at 21:15:58, David Rowland wrote:
>>
>>>
>>> On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
Is there any way to get short abbreviations for a TimeZone? I need it
>>>
On Fri, Jun 18, 2010 at 11:25 PM, Rick Mann wrote:
> NSTimeZone* tz = [NSTimeZone timeZoneWithName: @"UTC"];
> NSString* abv = tz.abbreviation;
>
> returns "GMT+00:00". Not very nice.
I was trying your example (Asia/Oral) on 10.6.4 but couldn't get the
response you want. Just GMT+05:00. I thought
On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
> Is there any way to get short abbreviations for a TimeZone? I need it
> short due to limited space. I need a common abbreviation due to users not
> knowing POSIX timezone names.
this works for me:
NSTimeZone* t
On Jun 18, 2010, at 21:34:30, David Rowland wrote:
> On Jun 18, 2010, at 6:38 PM, Rick Mann wrote:
>> Is there any way to get short abbreviations for a TimeZone? I need it
>> short due to limited space. I need a common abbreviation due to users
>> not knowing POSIX timezone name
50 matches
Mail list logo