> Also, I suspect the reason you're specifying center-X alignment when
creating the vertical constraints is because NSLayoutConstraint threw an
exception when you tried to use the center-Y alignment option. That
should be warning enough. ;-)
This is true - as I typed this block into my own project
On Fri, Oct 4, 2013, at 08:22 PM, Luther Baker wrote:
> First of all ... very much appreciate you both so often! Thanks for
> commenting as much as you do.
>
> I too faced this issue and, like Kyle, read enough to assume it was
> generally not possible with VFL. But this afternoon, I came across t
On 2013 Oct 04, at 18:56, Rick Mann wrote:
> … but Core Data seems to be deleting my database and starting fresh, anyway.
>
> I verified that if I don't set the auto-migration options, then it gets an
> error when it attempts to open the db.
Rick, this looks like a case of "You should look mor
Sorry, I just noticed the link in the original question that contains the
answer I was referring to.
Now I'm curious to know if that doesn't work on the desktop or if you need
to describe more than those simple two lines for other types of
content/child views. I'm sure the UIImageView I am using c
First of all ... very much appreciate you both so often! Thanks for
commenting as much as you do.
I too faced this issue and, like Kyle, read enough to assume it was
generally not possible with VFL. But this afternoon, I came across this:
https://github.com/evgenyneu/center-vfl and for my specific
On Oct 4, 2013, at 12:50 PM, Greg Parker wrote:
> In practice you'll usually want to use NSObject*
Well *there* is a solution I would never have thought of in a million years.
I'm a bit surprised that so many built-in delegate properties in iOS (like, all
of them, many dozens) are typed as id
I changed the type of a property from NSString to Transformable. I added a new
model version to do this, and set the appropriate flags.
But Core Data seems to be deleting my database and starting fresh, anyway.
I verified that if I don't set the auto-migration options, then it gets an
error whe
You could also do something like add a class method to your cell class that
creates a non-queued instance (if necessary to the calculation) and calculates
the cell height based on whatever goes into determining it. That avoids mucking
around with the collection view's queue.
What I'm currentl
On Oct 4, 2013, at 2:45 PM, David Hoerl wrote:
> On 10/4/13 5:09 PM, Steve Christensen wrote:
>> On Oct 4, 2013, at 1:52 PM, David Hoerl wrote:
>>
>>> But its really odd - and I'm thinking about a bug report on this - that the
>>> delegate has to provide the size before the view is even create
On 4 Oct 2013, at 21:52, Kyle Sluder wrote:
> On Fri, Oct 4, 2013, at 01:31 PM, jonat...@mugginsoft.com wrote:
>> I have a fixed size custom OS X view that I load from a nib and want to
>> centre within a host view using auto layout.
>> Can this be done using VFL alone?
>
> No.
Thanks for the co
You set me on the right path … I ran the app from the Finder and attached to it
from Xcode …
The problem …
running from Xcode the destination was 32 bit
running from Finder we run in 64 bit
a supporting library containing the call in question would not operate
correctly in 64 bit
thx …
-koko
Egads. Forgot. Fooled by the tiny version number and annoyance.
Apologies.
Sent from my iPhone
> On 2013/10/05, at 2:28, Kyle Sluder wrote:
>
> Xcode 5.0.1 is prerelease software covered under NDA.
>
> If you would like to discuss prerelease software, use the Developer Forums:
> http://devf
On 10/4/13 5:09 PM, Steve Christensen wrote:
On Oct 4, 2013, at 1:52 PM, David Hoerl wrote:
But its really odd - and I'm thinking about a bug report on this - that the
delegate has to provide the size before the view is even created.
It make sense if you think about it: it's asking for size
On Oct 4, 2013, at 11:30 AM, Tom Davie wrote:
> The more mathematically correct thing to do (and what it does for all other
> types) is “I don’t know what it is, so I can’t ‘prove’* anything at all about
> whether this is correct, therefore it’s not correct. Puny human, you must
> provide me
On Oct 4, 2013, at 1:52 PM, David Hoerl wrote:
> But its really odd - and I'm thinking about a bug report on this - that the
> delegate has to provide the size before the view is even created.
It make sense if you think about it: it's asking for sizes so that scroll view
contentSize can be set
On Oct 4, 2013, at 20:30 , Tom Davie wrote:
> Right, really the confusion stems from the fact that objective-c has a
> strange behaviour when dealing with the type “id”.
Actually, “id” is not “strange” at all. It just uses the very simple Smalltalk
semantics: an object *always* responds to
On Fri, Oct 4, 2013, at 01:52 PM, Kyle Sluder wrote:
> The width and height of the view are independent of its position.
> Correctly specifying the view's size is a separate issue. Typically that
> is done by virtue of the constraints installed _within_ the view.
(In other words, split up the cent
We have a menu that has one submenu with an item that uses unmodified 7, then
another submenu with an item that uses control-7. When control-7 is typed,
Cocoa is finding the item with unmodified 7 instead of the item with control-7.
If I trap this event in our app's sendEvent: method and make a
I have a bunch of views in it, each grouped into a container view. What I'd
like to do is when the view rotates, move the container views around. Currently
this seems impossible because the size of the header (and footer) must be
specified to the Flow Layout before the view is even created, a
On Fri, Oct 4, 2013, at 01:31 PM, jonat...@mugginsoft.com wrote:
> I have a fixed size custom OS X view that I load from a nib and want to
> centre within a host view using auto layout.
> Can this be done using VFL alone?
No. But it's still really simple to do in code.
> To achieve the desired ef
I have a fixed size custom OS X view that I load from a nib and want to centre
within a host view using auto layout.
Can this be done using VFL alone?
My best shot at it follows, but it is incorrect:
[self.window.contentView addConstraints:[NSLayoutConstraint
On Oct 4, 2013, at 9:59 AM, Matt Neuburg wrote:
> Surely an id is, by definition, an id
It is not. There is no id-style type system leniency in `id`.
That type must conform to the protocol and respond to its methods, and nothing
more. Unlike `id` it does not allow use of any other methods.
In
On 4 Oct 2013, at 18:14, Fritz Anderson wrote:
> On 4 Oct 2013, at 10:54 AM, Marcelo Alves wrote:
>
>> Why not enumerate each subview, detect if it is a UIButton and add the
>> capped images?
>
> Easier: Select each button and connect it to an outlet collection
>
> @property (strong, nonato
On Oct 4, 2013, at 11:35 AM, David Hoerl wrote:
> Becoming increasingly adept at autolayout but currently stumped. What I am
> trying to do is design a UICollectionView header that using constraints is
> suitable for portrait and landscape.
>
> I have a bunch of views in it, each grouped into
Becoming increasingly adept at autolayout but currently stumped. What I
am trying to do is design a UICollectionView header that using
constraints is suitable for portrait and landscape.
I have a bunch of views in it, each grouped into a container view. What
I'd like to do is when the view rot
On 4 Oct 2013, at 10:53, Jens Alfke wrote:
>
> On Oct 4, 2013, at 9:59 AM, Matt Neuburg wrote:
>
>> But why is either of those necessary? Surely an id is, by
>> definition, an id - which inherits from NSObject
>
> ‘id’ is not a type that inherits from NSObject. ‘id’ is explicitly untyped.
>
On Fri, Oct 4, 2013, at 10:16 AM, Jens Alfke wrote:
> Basically, by calling a client-supplied block on its private internal
> queue, the implementation is exposing sensitive internal state to its
> callers. That seems like a really bad idea.
This jibes with my memory of Andy's argument, which I'm
On Oct 4, 2013, at 9:59 AM, Matt Neuburg wrote:
> But why is either of those necessary? Surely an id is, by
> definition, an id - which inherits from NSObject
‘id’ is not a type that inherits from NSObject. ‘id’ is explicitly untyped.
‘id’ is _not_ untyped — its type is ‘any class that implem
On Oct 4, 2013, at 12:08 AM, Nick Rogers wrote:
> Is this even possible?
Basically no. In Unix there is no connection from an executable file to a
process running that file (or from _any_ file to a process that has that file
open, really.) The most exhaustive solution is what the `lsof` and `
It's also worth mentioning that the Xcode Developer Forums are now open
to all developers with a registered account, paid or free. The Mac and
iPhone forums are still restricted to paying members of those programs.
On Fri, Oct 4, 2013, at 10:28 AM, Kyle Sluder wrote:
> Xcode 5.0.1 is prerelease so
On Oct 4, 2013, at 4:08 AM, Andreas Grosam wrote:
> Scheduling or dispatching a callback or block onto a "known" thread/queue
> will increase the risk for a dead lock. Thus, the execution context of the
> callback shall be created/selected by the "asynchronous result provider" and
> should no
On Oct 4, 2013, at 12:30:51, Kyle Sluder
wrote:
> Given the volume and specificity of your questions, and the apparent speed
> with which you expect answers from this volunteer community, have you
> considered purchasing a DTS incident? Unlike this mailing list, DTS incidents
> come with a gu
On 4 Oct 2013, at 12:28 PM, Kyle Sluder wrote:
> Xcode 5.0.1 is prerelease software covered under NDA.
You are correct, and I apologize for responding in this thread.
— F
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
On 4 Oct 2013, at 12:12 PM, dangerwillrobinsondan...@gmail.com wrote:
> Is it just me or did the finally-good-in-5 doc viewer get tweaked for the
> worse in 5.0.1 ?
> Where did the right sidebar go? That was great… :(
? It's been rearranged, but it's all still there. Make sure the two buttons
b
> On Oct 4, 2013, at 10:17 AM, Steve Mills wrote:
>
> No ideas on this?
Guess not.
Given the volume and specificity of your questions, and the apparent speed with
which you expect answers from this volunteer community, have you considered
purchasing a DTS incident? Unlike this mailing list, D
Xcode 5.0.1 is prerelease software covered under NDA.
If you would like to discuss prerelease software, use the Developer Forums:
http://devforums.apple.com. If you would like to submit feedback on prerelease
software, use Bug Reporter: http://bugreport.apple.com.
--Kyle Sluder
> On Oct 4, 201
On Fri, 4 Oct 2013 09:59:53 -0700, Matt Neuburg said:
>-(BOOL)test {
>return [self.celldelegate respond
>sToSelector:@selector(foo:)]; // ...wait for it...
>}
>
>Compile error! No known instance method for selector
>'respondsToSelector:'. WTF???
>
>Here are two ways of fixing the problem. (1)
> On Oct 4, 2013, at 9:59 AM, Matt Neuburg wrote:
>
> But why is either of those necessary? Surely an id is, by
> definition, an id
Nope. A couple years back the type of id was changed to only
respond to the methods in the protocol. This is arguably much more useful,
since otherwise the diff
On Oct 4, 2013, at 9:59 AM, Matt Neuburg wrote:
> Or, (2) inherit NSObject protocol back in the protocol definition:
>
> @protocol MyCellDelegate
> @end
You should do this.
> But why is either of those necessary? Surely an id is, by
> definition, an id
id is more specific than id, and so th
On 4 Oct 2013, at 11:27 AM, koko wrote:
> I have a stack variable in an Obj-C Interface which is a C++ Class. I call a
> function of this class. If I run the app from XCode it works as expected,
> i.e. the function is called.
>
> But, if I run the app from the Finder the function is not calle
No ideas on this?
We have an NSControl subclass in a window. The class returns YES from
acceptsFirstResponder and canBecomeKeyView, and it overrides some NSResponder
methods (mouseDown:, keyDown:). The control is set to be the
initialFirstResponder in the xib. Yet it will not be the initial fir
On 4 Oct 2013, at 10:54 AM, Marcelo Alves wrote:
> Why not enumerate each subview, detect if it is a UIButton and add the capped
> images?
Easier: Select each button and connect it to an outlet collection
@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray
*customButtons;
and
Is it just me or did the finally-good-in-5 doc viewer get tweaked for the worse
in 5.0.1 ?
Where did the right sidebar go? That was great… :(
This popover business when clicking on "More related items…” stinks.
___
Cocoa-dev mailing list (Cocoa-dev@li
Here's a familiar pattern, a .h file defining a protocol and a delegate that
must adopt it:
@protocol MyCellDelegate;
@interface MyCell : UITableViewCell
@property (nonatomic, weak) id celldelegate;
@end
@protocol MyCellDelegate
@end
Here's the mystery. In the corresponding .m file:
-(BOOL)test
I have a stack variable in an Obj-C Interface which is a C++ Class. I call a
function of this class. If I run the app from XCode it works as expected, i.e.
the function is called.
But, if I run the app from the Finder the function is not called.
What am I missing or should I say "How can this
Why not enumerate each subview, detect if it is a UIButton and add the capped
images?
--
:: marcelo.alves
> On 04/10/2013, at 11:37, Alex Kac wrote:
>
> Just my two cents - its not much work at all. Create a UIButton subclass.
> Have it use images or code - who cares. Then you just go and ch
On 4 Oct 2013, at 15:37, Alex Kac wrote:
> Just my two cents - its not much work at all. Create a UIButton subclass.
> Have it use images or code - who cares. Then you just go and change the
> classes throughout code to your new subclass.
>
> For 5 apps, should take…30 minutes.
There are a
Just my two cents - its not much work at all. Create a UIButton subclass.
Have it use images or code - who cares. Then you just go and change the
classes throughout code to your new subclass.
For 5 apps, should take…30 minutes.
Not supporting iOS 7? OK…
On Fri, Oct 4, 2013 at 4:02 AM, Dave wro
Hi,
I've been asked to implement a View that contains three horizontal Scroll
Views. Each scroll view contains a number of image views with a fixed height
but variable width. There is a gap between each image in the a scroll view and
a gap between each of the three Scroll views. The idea is tha
On 03.10.2013, at 22:00, Jens Alfke wrote:
>
> On Oct 3, 2013, at 12:17 PM, Kyle Sluder wrote:
>
>> What is adopting GCD going to get you if you aren't going to use GCD the
>> way it was intended?
>
…
> Also, my project is a library, and I don’t want to put too many restrictions
> on how it
Hi,
Using the cap approach sounds good, but it's way to much work for these 5 apps
I have to modify. It's all a bit mute now anyway. since I've just come out of a
meeting and, because of all this Button nonsense (as well as other UI issues)
we are not going to support iOS 7 for these Apps for a
I wonder if this is a side-effect of -[NSOutlineView autoresizesOutlineColumn].
I had to set it to NO for our app.
On 2 Oct 2013, at 11:57, Jakob Egger wrote:
> I had a similar issue with NSOutlineView in 10.8. I had an outline view that
> could be hidden by the user, and every time it was sho
Thanks a lot Ronald, that's great, I think I will add this as subclass of
UIButton!
Dave
On 4 Oct 2013, at 03:48, Ronald Hofmann wrote:
> This is a fully configurable, common, all garden, down to earth, no messing
> around - Button code snippet generated by UI Tuner.
>
>
> //
On 4 Oct 2013, at 00:05, Robert Martin wrote:
> You presented a problem, and other members spent their precious time trying
> to help you solve it. Just take it or leave it, but thank them all the same.
This thread isn't finished and at the end of it I will thank them and report my
finding as
I had a similar issue with NSOutlineView in 10.8. I had an outline view that
could be hidden by the user, and every time it was shown again, the width of
the outline column shrank by a certain amount. It might be a bug in
NSOutlineView.
Calling -reloadData after the view is shown fixed the issu
1) There's also MagicKit, an Obj-C wrapper around libmagic:
https://github.com/aidansteele/MagicKit
2) If you just want to know if something is an image, just try loading it:
[[NSImage alloc] initWithData:data]
If -initWithData: returns nil, it is not an image.
Jakob
On 28.09.2013, at 23:29
If you're targeting iOS 7, then you should take a look at WWDC session 214
(Customizing Your App’s Appearance for iOS 7). It talks about using the
method on UIImage called imageWithRenderingMode:, which lets you use the
tintColor property to tint your generic images in code.
If you're targeting iO
Hi,
Xcode 5 -> Preferences -> Accounts -> View Details -> Update will reload all
profiles from the developer portal…
Am 27.09.2013 um 14:10 schrieb Kevin Muldoon :
> Used to be I could manage my development provisioning profiles in the
> Organizer.
>
> Or I could update development profile i
> On Oct 4, 2013, at 12:08 AM, Nick Rogers wrote:
>
> Hi,
>
> I need to know if a binary is executing or not. I just have the path to the
> binary e.g. /Applications/MyApp.app/Contents/MacOS/MyApp
From the OS’s point of view, your question is ill-formed. The user can create a
hardlink to the
Hi,
I need to know if a binary is executing or not. I just have the path to the
binary e.g. /Applications/MyApp.app/Contents/MacOS/MyApp
There's NSRunningApplication method runningApplicationsWithBundleIdentifier: ,
but I have other binaries which are embedded in this app which don't have a
bu
Thanks Jerry. I don't know how i went by the documentation and didn't see this
method :S
As for the size of the window, the view is somewhat mangled with buttons
overlapping at this size. Yet the user can review its data in versions.
Regards.
On Oct 3, 2013, at 7:59 PM, cocoa-dev-requ...@lists.
61 matches
Mail list logo