Just looking at the code, one issue that you might be running into is that for
ALAssetsLibrary under iOS 5, to quote from the Apple docs, "The lifetimes of
objects you get back from a library instance are tied to the lifetime of the
library instance." In this case, it's not at all clear to me th
On Oct 27, 2011, at 4:12 AM, Shaguo wrote:
> I made my app trusted by AXMakeProcessTrusted to listen to the keyboard. But
> it failed to launch the dylib when it was launched.
>
> Reason: unsafe use of xxx with restricted binary
>
> Anyone has ideas on it? It makes me crazy.
AXMakeProce
On Oct 26, 2011, at 10:20 PM, GW Rodriguez wrote:
> I am trying to limit files with certain UTI's from dropping into a table
> view. Here's my code so far:
>
> // in the init method I set the registerForDraggedTypes with NSURLPboardType
>
> -(NSDragOperation) tableView: (NSTableView*)tv
>
On Oct 27, 2011, at 12:28 PM, Sean McBride wrote:
> Are you aware that Xcode 4's built-in Interface Builder no longer supports
> ibplugins? You might want to not bother with the whole thing. :(
And file a bug about this regression.
--Kyle Sluder___
On Oct 26, 2011, at 4:20 AM, Brad Stone wrote:
> I understand there's an issue with focus rings not appearing in an editable
> cell if, like I do, you have an NSOutlineView sitting on a view that has Core
> Animation turned on.
I was under the impression that this was fixed on Lion. You should
On Oct 26, 2011, at 8:20 PM, GW Rodriguez wrote:
> if([[[info draggingPasteboard] types] containsObject:NSURLPboardType] ) {
> NSString *availableType = [[info draggingPasteboard]
> availableTypeFromArray:firstType];
> NSString *fileType;
> NSURL *url;
> NSArr
Hi David,
> The CAShapeLayer favors performance over accuracy, while Quartz favors
> accuracy over performance. As such it is entirely possible to get slightly
> different results between the APIs.
Looks I've ran into the case where the difference was most noticeable (the
small radii). Thank y
On Oct 26, 2011, at 7:02 PM, R wrote:
> If I don't pre-select the row, it takes two clicks of the button to
> register the correct object. The first click will register the
> previously selected row. It's like the button is at a higher priority
> than the selected row.
Sounds like the button’s
On Fri, 21 Oct 2011 18:53:37 +0200, Livio Isaia said:
>I'm building an IB plugin with XCode 3.2.6.
>I have a NSBox subclass that add a custom NSView into itself.
>When the custom box is displayed in the Library Object Window it draws
>correctly, but if I drag it into a new nib file window the drag
I am trying to limit files with certain UTI's from dropping into a table view.
Here's my code so far:
// in the init method I set the registerForDraggedTypes with NSURLPboardType
-(NSDragOperation) tableView: (NSTableView*)tv
validateDrop: (id )info
proposed
I understand there's an issue with focus rings not appearing in an editable
cell if, like I do, you have an NSOutlineView sitting on a view that has Core
Animation turned on. Since it's not working and I'm using the latest XCode I'm
assuming it's not fixed. I'd be interested in any work-around
Hi All
I have an application that I am just moving to using sandboxing, and it
currently (before sandboxing) writes log files to a folder in the Application
Support folder, then if the program crashes, or the user wants to submit a
defect report, it launches another application that picks up th
Never mind I found it! I can create an NSBitmapImageRep using
initWithCGImage:, create my NSImage using initWithSize:, and then add the
representation to the image using addRepresentation:.
Thanks anyway!
Howard
On Oct 26, 2011, at 10:17 AM, Howard Moon wrote:
> Hi all,
>
>
I've got a column of buttons in a tableView. I don't allow multiple
row selections.
A click of the button fires a method which says.
id obj;
obj=[[anArrayController selectedObjects] objectAtIndex:0];
NSLog(@"the object: %@",obj);
If I don't pre-select the row, it takes two clicks of the but
OK, I wrote too soon. Sorry.
The relevant thread is
"Lion's new "Resume" feature, document restoration, and splash screens"
I'll read that through again and try the solution given there.
Martin
On Oct 26, 2011, at 06:54 PM, Martin Hewitson wrote:
> Dear list,
>
> I have an NSDocument based a
Dear list,
I have an NSDocument based app which has a 'welcome' screen which appears when
the app launches. This is much like the window that opens when Xcode first
starts. I want to support restorable windows, but I would like a way to know if
the app will/did restore one or more windows, so t
On 27/10/2011, at 4:17 AM, Howard Moon wrote:
> Unfortunately, I just noticed that the NSImage function initWithCGImage:size:
> is not supported until OS X 10.6, and I need to support 10.5 as well. How
> can I create my NSCursor objects from my CGBitmap objects, in a manner that
> IS supporte
On Oct 26, 2011, at 1:17 AM, Nick wrote:
> The problem is,
> when I resize the window, I get this line's width "doubled" (probably,
> because of antialiasing) and the line appears blurred. Is there a way I
> could disable this "antialiasing" (or whatever it is?).
Blurred images are usually a res
In case someone's still interested in this, I just came across this link:
http://www.theregister.co.uk/2008/10/14/mac_secrets_imagekit_internals/page2.html
which says the following delegate methods work:
-(void) imageWillChange: (IKImageView *) imageView;
-(void) imageDidChange: (IKImageView *)
Hi all,
I've got several .png files that I want to use as custom cursors in my
app. I'm loading them into CGBitmap objects, and have written code that creates
NSImage objects using them, via initWithCGImage:size:. I then use those
NSImage objects to create my NSCursor objects via initW
On 26 Oct 2011, at 17:46, Antonio Nunes wrote:
> I use an NSSPlitView with three subviews. The general idea is that when the
> window is resized, only the middle view resizes. I have this working just
> fine when dragging the window frame. The split view consults the delegate
> with splitView:s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/26/11 1:17 AM, Nick wrote:
> hi I have a 2x2 px png image which represents a line element. I am
> drawing this
Btw, using an image for a 2x2 element seems like overkill. Even if
you drew every pixel with Quartz drawing code you would have four
Hello -
My code now for gathering images from the photo library seems to always timeout
the library instance.
How can I not? Nothing I have tried works.
I am using the ELCAlbumPickerController code which used to work great:
dispatch_async(dispatch_get_main_queue(), ^
{
NSAutoreleas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/26/11 1:17 AM, Nick wrote:
> hi I have a 2x2 px png image which represents a line element. I am
> drawing this "line" by drawing vertically repeatedly these line
> elements. The problem is, when I resize the window, I get this
> line's width "
hi
I have a 2x2 px png image which represents a line element. I am drawing this
"line" by drawing vertically repeatedly these line elements. The problem is,
when I resize the window, I get this line's width "doubled" (probably,
because of antialiasing) and the line appears blurred. Is there a way I
On Oct 25, 2011, at 9:19 AM, David Duncan wrote:
> Prior to iOS 5 -drawAtPoint: did return integral values, which could lead to
> odd situations such as rendering @"m" and @"a" requiring more of an advance
> than rendering @"ma".
Even if -drawAtPoint: did/does return fractional values, you woul
Hi
I made my app trusted by AXMakeProcessTrusted to listen to the keyboard. But
it failed to launch the dylib when it was launched.
Reason: unsafe use of xxx with restricted binary
Anyone has ideas on it? It makes me crazy.
--
Thanks & Best Regards!
Email:rasha...@gmail.com
Yahoo:rasha.
On Oct 22, 2011, at 1:21 PM, Jens Alfke wrote:
>
> On Oct 21, 2011, at 10:47 AM, David Duncan wrote:
>
>> Are you seeing this on iOS 5.0 only or on previous versions of iOS? There
>> were some text changes that (for a time) leaked out non-integral values, but
>> we thought we caught them
>
>
I use an NSSPlitView with three subviews. The general idea is that when the
window is resized, only the middle view resizes. I have this working just fine
when dragging the window frame. The split view consults the delegate with
splitView:shouldAdjustSizeOfSubview:, and I return YES when the sub
Hi David,
The question seems a little general to me. Where did you have problems
doing what you wanted to do?
On Fri, Oct 28, 2011 at 4:02 PM, Quincey Morris <
quinceymor...@rivergatesoftware.com> wrote:
> On Oct 28, 2011, at 14:53 , David Catmull wrote:
>
> > - What is the simplest way to adju
On Oct 28, 2011, at 11:28, Boyd Collier wrote:
> It's been nearly a week since I've received anything from either cocoa list
> or Xcode list, and when I try to access http://lists.apple.com/, I get a
> proxy error saying
>
>> The proxy server received an invalid response from an upstream server
On pet 21.10.2011., at 15.41, Dragan Milić wrote:
> Hello,
>
> This may not be strictly related to Cocoa, but I'm willing to use any API
> that can serve the purpose and perhaps something like that exists in Cocoa, I
> just don't know of it.
>
> So, I want to mount shared volume(s) that reside
I have a similar case, and it works OK.
What I do is on mouseDown, start a timer. When that fires, it grabs [NSApp
currentEvent] and passes that as the event to the popUpContextMenu: method. The
menu tracks as expected.
The only kink was that because this was being done within a button cell's
I have a menu that I popup using popUpContextMenu:withEvent:forView: from a
mouse down event but after a delay (like a dual-state click and hold button).
The problem is when I release the mouse button the menu is closed forcing the
user to hold the mouse down the entire time they're navigating t
It's been nearly a week since I've received anything from either cocoa list or
Xcode list, and when I try to access http://lists.apple.com/, I get a proxy
error saying
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /.
On Oct 28, 2011, at 14:53 , David Catmull wrote:
> - What is the simplest way to adjust the text field's height to fit its
> content?
AFAIK there's no *simple* way to do it perfectly. You can use [NSString
sizeWithAttributes:] to determine the height but you'll need to match the text
field's a
On Oct 26, 2011, at 14:17 , Darren Wheatley wrote:
> I need to display a subset of those rows in a table view filtered on a
> calculated search criteria, and for each row displayed add a value that I
> calculate in real time but don't store in the entity.
>
> The calculation needs to use a couple
I created an IB plug-in with a subclass of NSView with an exposed bind of type
NSNumber, and then I bind it to a MyNSImageView through an NSObjectController
(this is made directly in IB).
In source code of the class myclass.h:
@interface AnotherClass : NSView {
NSNumber *type;
}
-(NSNu
Hi,
I'm fairly new to the more complex parts of Core Data.
My application has a core data store with 15K rows. There is a single
entity.
I need to display a subset of those rows in a table view filtered on a
calculated search criteria, and for each row displayed add a value that I
calculate in re
On pet 21.10.2011., at 15.41, Dragan Milić wrote:
> Hello,
>
> This may not be strictly related to Cocoa, but I'm willing to use any API
> that can serve the purpose and perhaps something like that exists in Cocoa, I
> just don't know of it.
>
> So, I want to mount shared volume(s) that reside
(first send attempt failed)
The situation: I have a static text field at the top of a window whose height
needs to vary depending on its contents, and the window and other controls need
to resize/move to accommodate. This seems like the kind of thing Lion's new
view constraints system would be
41 matches
Mail list logo