Uncheck the "Restorable" checkbox of all your windows in Interface Builder or
call setRestorable:NO on them.
On 2011-08-22, at 1:39 PM, Matthew Weinstein wrote:
> Dear CocoaDevs,
> I'm working on updating my app for lion. For the time being, just to get
> users able to proceed I need to disable
I have an NSView subclass that I'm trying to capture right clicks in. I
override the rightMouseDown: method but it is never called. This is the first
time I've come across this issue as it has always worked fine for me before.
All of the other mouse event methods (mouseDown:, mouseUp:, mouseDrag
I have an NSView subclass that I'm trying to capture right clicks in. I
override the rightMouseDown: method but it is never called. This is the first
time I've come across this issue as it has always worked fine for me before.
All of the other mouse event methods (mouseDown:, mouseUp:, mouseDrag
n:.
On 2011-08-25, at 12:56 PM, Kyle Sluder wrote:
> On Thu, Aug 25, 2011 at 11:45 AM, Indragie Karunaratne
> wrote:
>> I have an NSView subclass that I'm trying to capture right clicks in. I
>> override the rightMouseDown: method but it is never called. This is the
>&g
t see how that would make a difference in the responder chain but that's
all I can think of.
On 2011-08-25, at 1:58 PM, Ken Thomases wrote:
> On Thu, Aug 25, 2011 at 11:45 AM, Indragie Karunaratne
> wrote:
>
>> I have an NSView subclass that I'm trying to capture right
oolbar can not (as the
event would have to be forwarded up the responder chain to the toolbar in order
for it to receive it).
On 2011-08-25, at 1:58 PM, Ken Thomases wrote:
> On Thu, Aug 25, 2011 at 11:45 AM, Indragie Karunaratne
> wrote:
>
>> I have an NSView subclass that I&
the source
> of your problem.
>
> What are you trying to do?
>
> corbin
>
> On Aug 25, 2011, at 3:14 PM, Indragie Karunaratne wrote:
>
>> Just realized something interesting, and remembered a key detail that I
>> forgot to mention. The view in question is a cu
>
> -raleigh
>
> On Aug 25, 2011, at 3:39 PM, Indragie Karunaratne wrote:
>
>> I just need to present a contextual menu from my custom view toolbar item,
>> but NSToolbarView is not passing the right mouse events down, so
>> -menuForEvent: is never cal
get to these actions
> / settings right?
>
> -raleigh
>
> On Aug 25, 2011, at 3:39 PM, Indragie Karunaratne wrote:
>
>> I just need to present a contextual menu from my custom view toolbar item,
>> but NSToolbarView is not passing the right mouse ev
ass of the NSToolbar object
itself to a subclass, but this wouldn't help me much as there is no public
NSToolbar method that allows me to change the class of its view.
On 2011-08-25, at 9:35 PM, Quincey Morris wrote:
> On Aug 25, 2011, at 19:48 , Indragie Karunaratne wrote:
>
>&g
at makes
> subclassing impractical. But in that case, replacing the NSToolbarView method
> seems even more undesirable.
>
>
> On Aug 25, 2011, at 20:55 , Indragie Karunaratne wrote:
>
>> I'm not sure how I would get NSToolbar to use my subclass of NSToolbarView.
>> I c
ighting the
> framework.
>
> Alternatively, you could just create a custom view that is placed at
> the top of your content view of the window and just ignore the
> NSToolbar class completely.
>
>
> On Thu, Aug 25, 2011 at 9:46 PM, Indragie Karunaratne
> wrote:
>>
uot;)? That would be discoverable and accessible.
>
> (Meant to hit reply-all)
>
> On Aug 26, 2011, at 9:36 AM, Indragie Karunaratne wrote:
>
>> Thats actually what I'm doing right now, its an NSToolbarItem with a custom
>> view but like I said, the right mouse e
This has been asked a few times before, but not after Lion was released so I
figured I'd ask again. Is there any way to animate the scroll point of an
NSScrollView? I figure that animation must be possible somehow, considering
that inertial scrolling is basically animating the scroll point. I ex
https://github.com/nickpaulson/NPReceiptVerification
Should simplify this procedure quite a bit.
On 2011-09-10, at 2:28 PM, R wrote:
> Wow, what a configuration mess for the new programmer.
>
> Is there anyone that has submitted a Mac App to the App Store willing
> to explain the procedure.. in
https://github.com/nickpaulson/NPReceiptVerification
Should simplify this procedure quite a bit.
On 2011-09-10, at 2:28 PM, R wrote:
> Wow, what a configuration mess for the new programmer.
>
> Is there anyone that has submitted a Mac App to the App Store willing
> to explain the procedure.. in
I'm trying to use FSCopyObjectAsync() to copy a file and get progress callbacks
to update my UI. The last parameter (clientContext) gets passed on to the
callback. Under ARC, I can not pass self because the parameter has a void*
type. Using (__bridge void*)self silences the compiler warning but
On 2011-09-20, at 6:11 PM, David Duncan wrote:
>
> On Sep 20, 2011, at 5:07 PM, Indragie Karunaratne wrote:
>
>> I'm trying to use FSCopyObjectAsync() to copy a file and get progress
>> callbacks to update my UI. The last parameter (clientContext) gets passed on
>
It's called a focus ring. You can set "Focus Ring" to "None" in Interface
Builder or configure it programatically:
[view setFocusRingType:NSFocusRingTypeNone];
On 2011-09-20, at 10:18 PM, R wrote:
> Looking inside Address Book, when you select a name from the name
> column, the box (tableView)
Hi,
I'm looking for something similar to UIScrollView's scrollEnabled property in
NSScrollView. I've checked the class documentation and there is nothing similar
to scrollEnabled, but would there be a way to disable scrolling in an
NSScrollView subclass?
Thanks.__
I'm trying to animate a CATransformLayer (the transform layer is a sublayer of
the layer of a layer hosting NSView). Here's my animation code:
CGFloat zDistance = 850;
CGFloat scaleFactor = BACK_COVER_WIDTH /
self.transformLayer.bounds.size.width;
CATransform3D rotation = CATransform
I have an NSManagedObject that has the following string attributes:
artist, albumArtist, composer, comments, and lyrics
I need to write an NSPredicate that will take an array of search terms, and
check if all of the above string attributes COMBINED contains every term in the
search term array.
I've read that document before, but it contains nothing that would pertain to
my current situation. Thanks anyways though.
On 2011-03-11, at 8:28 PM, Jerry Krinock wrote:
>
> On 2011 Mar 11, at 18:36, Indragie Karunaratne wrote:
>
>> Is there any way I can do this in a
*andPredicate = [basePredicate
predicateWithSubstitutionVariables:substitution];
[andPredicates addObject:andPredicate];
}
NSPredicate *finalPredicate = [NSCompoundPredicate
andPredicateWithSubpredicates:andPredicates];
On 2011-03-12, at 6:17 AM, Andreas Grosam wrote:
>
> On Mar 12, 20
Thanks Andreas,
I see your point, but as far as I know, "IN" looks for an exact match (in this
case, the attribute would have to match the term for the predicate to return
true) where as I need it to check if the attribute CONTAINS the term (which is
more appropriate for Spotlight-style search)
This is a weird solution that worked for me:
1. Decrease column count to one
2. Click the "Headers" checkbox to disable table headers
3. Click the "Headers" checkbox again to re-enable table headers, and it
automatically sizes your single column to fill the entire width of the table
This seems t
I'm having a really weird issue with NSSearchField at the moment. Whenever the
search field ends editing, this happens:
http://d.indragie.com/bRDS
I did some tests and it _seems_ that the reason that's happening is because
this particular search field has been placed as a subview of the window
Will do, thanks.
On 2011-03-28, at 1:15 PM, Aki Inoue wrote:
> Looks like an issue with us.
>
> Please file a bug with the reproducing steps.
>
> Thanks,
>
> Aki
>
> On 2011/03/25, at 21:50, Indragie Karunaratne wrote:
>
>> I'm having a really wei
Filed as rdar://9202933.
On 2011-03-29, at 11:21 AM, Indragie Karunaratne wrote:
> Will do, thanks.
>
> On 2011-03-28, at 1:15 PM, Aki Inoue wrote:
>
>> Looks like an issue with us.
>>
>> Please file a bug with the reproducing steps.
>>
>> Thanks,
Despite the confusing title, I'm sure this is an issue that someone else has
run into before. I have a parent scroll view that houses a bunch of subviews,
including an NSTextView (and its own scroll view). The problem is that if I try
to scroll vertically through the parent view, the text view's
croll text. Would I
be able to subclass the text view's scroll view to pass scroll events to the
parent scroll view?
On 2011-04-28, at 5:37 PM, Michael Dautermann wrote:
>
> On Apr 28, 2011, at 7:12 PM, Indragie Karunaratne wrote:
>
>> Despite the confusing title, I
chael Dautermann wrote:
>
> On Apr 28, 2011, at 8:07 PM, Indragie Karunaratne wrote:
>
>> I have resized all my text views so that all the content is visible without
>> vertical scrolling, and I have disabled the vertical scroller on its scroll
>> view. I would remove it f
I can resort to this if there is no other option, but I would prefer not to
have to do that because extending the text view past the margins I have on the
parent view wouldn't look that great.
On 2011-04-28, at 6:53 PM, Kyle Sluder wrote:
> On Thu, Apr 28, 2011 at 5:07 PM,
Thu, Apr 28, 2011 at 5:07 PM, Indragie Karunaratne
> wrote:
>> I have resized all my text views so that all the content is visible without
>> vertical scrolling, and I have disabled the vertical scroller on its scroll
>> view. I would remove it from the scroll view entir
A1
>
> On 4/28/11 7:42 PM, Indragie Karunaratne wrote:
>> Figured out a super easy solution for this. Override scrollWheel: in
>> an NSScrollView subclass:
>>
>> - (void)scrollWheel:(NSEvent *)theEvent { [super
>> scrollWheel:theEvent]; [[self nextResponder] scro
This message keeps getting logged when trying to run my app (OS X 10.6.7):
"No current point for control point bounds"
This does *not* happen on newer versions of OS X, only 10.6.7. It happens
almost as soon as the app opens and renders it totally useless as the window
will not respond. The wor
: tid = 0x2d03, stop reason = breakpoint 1.1
frame #0: 0x7fff885b0a34 Foundation`NSLog
frame #1: 0x7fff86ad758b AppKit`-[NSApplication run] + 651
frame #2: 0x7fff86ad01a8 AppKit`NSApplicationMain + 364
On 2011-05-05, at 6:38 PM, Kyle Sluder wrote:
> On Thu, May 5, 2011 at 5:29 PM,
I have gone through and checked my code to make sure that I wasn't doing the
things you mentioned earlier with NSBezierPath. This is a real pain to solve
seeing as the debugger isn't giving me a single shred of useful information.
On 2011-05-05, at 6:56 PM, Graham Cox wrote:
> Maybe because som
011-05-05, at 7:17 PM, Kyle Sluder wrote:
> On Thu, May 5, 2011 at 5:49 PM, Indragie Karunaratne
> wrote:
>> I will check my NSBezierPath code to see if I'm doing anything of that sort,
>> but like I said, this only happens on 10.6.7. And Kyle, indeed the only code
&g
n Thu, May 5, 2011 at 5:49 PM, Indragie Karunaratne
> wrote:
>> I will check my NSBezierPath code to see if I'm doing anything of that sort,
>> but like I said, this only happens on 10.6.7. And Kyle, indeed the only code
>> of mine that is in the stack trace is NSApplica
Hi all,
I'm trying to use CATransition in my app to provide an animated slide
transition when swapping views. I don't want to permanently layer back my views
because they cause various glitches (no subpixel antialiasing, resize issues
when backed with a CATiledLayer, etc.) To get around this, I
Check out Elliptic License:
https://github.com/dchest/ellipticlicense
It's newer than most of the other solutions out there.
On 2011-05-29, at 6:12 PM, Gleb Dolgich wrote:
> Have a look at my CocoaFob at https://github.com/glebd/cocoafob/
>
> Regards,
>
> --
> Gleb Dolgich
> PixelEspresso
>
Hi all,
I need to create a simple command line application that will stall (as in keep
running without exiting) until it receives a certain distributed notification
via NSDistributedNotificationCenter. What would be the best way to go about
doing this? I assume I'd have to have a separate threa
with:secondView];
>[CATransaction commit];
> }
>
>
> On May 17, 2011, at 7:59 PM, Indragie Karunaratne wrote:
>
>> Hi all,
>>
>> I'm trying to use CATransition in my app to provide an animated slide
>> transition when swapping views. I don't want
ing the desired result is to draw the initial and target
> view into images and then animate the swapping of image views.
>
> Best,
> Pierre Bernard
> Houdah Software s.à r.l.
>
> On Jun 18, 2011, at 6:33 AM, Indragie Karunaratne wrote:
>
>> Super late reply here, but I
Hi all,
I'm playing around a bit with AVFoundation and it seems to have all the audio
related functionality I could possibly want (playback, metadata, mixing, etc.)
but there's one thing I'm having trouble figuring out. I know how to read
metadata from a file via AVAsset's -commonMetadata meth
Hi all,
I have a Core Data object model that I'm trying to write a fetch predicate for
(to use for search). Quick explanation of the model:
We'll call the main entity "Book". There's also a "Keyword" entity. The Book
entity has a to-many relationship with the Keyword entity called "keywords".
predicate reference details for this.
>
> _Karl
>
> On Wed, Jul 6, 2011 at 8:23 PM, Indragie Karunaratne
> wrote:
>> Hi all,
>>
>> I have a Core Data object model that I'm trying to write a fetch predicate
>> for (to use for search). Quick explanati
<= with character evaluations to speed this up. Check the
> 2010 CoreData Performance session from WWDC for more details, but it's
> a standard SQL trick to speed up string comparisons.
>
> _Karl
>
> On Thu, Jul 7, 2011 at 10:38 AM, Indragie Karunaratne
> wrote:
&
Hi guys,
I'm working on a search feature in one of my Core Data based apps and I'm
trying to gather everyone's tips on search optimization to get it as fast as I
possibly can. The search needs to be fast enough that it can deliver
near-instantaneous results for database of 20,000+ objects.
Wha
Thanks for the replies. However, my app is already built on top of Core Data so
switching to another framework isn't really an option.
On 2011-07-14, at 2:58 PM, Ruslan Zasukhin wrote:
> On 7/14/11 9:15 PM, "Indragie Karunaratne" wrote:
>
> Hi Indragie,
>
> You
The mailing list really isn't a place to advertise your products and my
question was specifically in regards to Core Data. I'm not interested in
alternate database frameworks.
On 2011-07-15, at 2:36 AM, Ruslan Zasukhin wrote:
> On 7/15/11 1:59 AM, "Indragie Karunaratne&quo
52 matches
Mail list logo