|
Re: What is the best strategy for this?
It would be interesting to try out. Try removing the spaces between each cell and issue the rotation, then try it out and find out.
Alex Zavatone
It would be interesting to try out. Try removing the spaces between each cell and issue the rotation, then try it out and find out.
Alex Zavatone
|
By
Alex Zavatone
·
#1375
·
|
|
Re: What is the best strategy for this?
It's an interesting idea, but there's an added complication (which I apologize for not making explicit in the original post) which makes this problematic. Each of these objects is a cell in a
It's an interesting idea, but there's an added complication (which I apologize for not making explicit in the original post) which makes this problematic. Each of these objects is a cell in a
|
By
Rick Aurbach
·
#1374
·
|
|
Re: What is the best strategy for this?
Perhaps this is naïve, but the first thing that comes to mind: could you not simply deal with it as a regular matrix of squares, and then apply a 45 degree transform on the view?
(I haven't tested
Perhaps this is naïve, but the first thing that comes to mind: could you not simply deal with it as a regular matrix of squares, and then apply a 45 degree transform on the view?
(I haven't tested
|
By
Ben Kennedy
·
#1373
·
|
|
What is the best strategy for this?
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
|
By
Rick Aurbach
·
#1372
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Alex,
Thanks for your input.
Yes, the conforming class did have the method/property implemented.
Yes the compiler warns if the conforming class does not fully implement the protocol. And of course
Alex,
Thanks for your input.
Yes, the conforming class did have the method/property implemented.
Yes the compiler warns if the conforming class does not fully implement the protocol. And of course
|
By
Sandor Szatmari
·
#1371
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Hi. I’m late to the discussion, but have you put the property or method on the class?
When you have a class that conforms to a protocol, my understanding is that you cross your heart and swear to
Hi. I’m late to the discussion, but have you put the property or method on the class?
When you have a class that conforms to a protocol, my understanding is that you cross your heart and swear to
|
By
Alex Zavatone
·
#1370
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Thanks for everyone’s help and I’m sorry I was unable to share the code. I’m sure it would have been obvious and everyone would have see the issue with the actual code available.
It turns out
Thanks for everyone’s help and I’m sorry I was unable to share the code. I’m sure it would have been obvious and everyone would have see the issue with the actual code available.
It turns out
|
By
Sandor Szatmari
·
#1369
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
As Allan suggested, maybe you should post the actual code. I have this same usage in my code and it builds & runs just fine.
Regards
Sak
As Allan suggested, maybe you should post the actual code. I have this same usage in my code and it builds & runs just fine.
Regards
Sak
|
By
Sak Wathanasin
·
#1368
·
|
|
Re: Trouble with NSTableViews in macOS 11.x
Both "plain" and "fullwidth" sort of work; my mistake was using IB to set this property and it had no effect. When I set it in code (thanks, Shane!), I could see differences in behaviour. Both styles
Both "plain" and "fullwidth" sort of work; my mistake was using IB to set this property and it had no effect. When I set it in code (thanks, Shane!), I could see differences in behaviour. Both styles
|
By
Sak Wathanasin
·
#1367
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
There is nothing conceptually wrong with what you sketch in your pseudo-code.
Please post an actual runnable example, as your pseudo-code has typos and lack context, something like the below compiles
There is nothing conceptually wrong with what you sketch in your pseudo-code.
Please post an actual runnable example, as your pseudo-code has typos and lack context, something like the below compiles
|
By
Allan Odgaard <groups-io@...>
·
#1366
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Thanks Sak,
This is how I’m working around the error right now. Like this I get a compiler warning, method not found, return type defaults to id.
Port = (NSUInteger)[self.dataSource
Thanks Sak,
This is how I’m working around the error right now. Like this I get a compiler warning, method not found, return type defaults to id.
Port = (NSUInteger)[self.dataSource
|
By
Sandor Szatmari
·
#1365
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
serverPort isn't a property, so you have to use
[self.dataSource serverPort];
If you want it to be a property, make it so
@protocol dataSrcProto
@property (readonly) NSUinteger
serverPort isn't a property, so you have to use
[self.dataSource serverPort];
If you want it to be a property, make it so
@protocol dataSrcProto
@property (readonly) NSUinteger
|
By
Sak Wathanasin
·
#1364
·
|
|
Compiler error - method not found on object which conforms to protocol
I have a server class which is abstracted to receive it’s final configuration from it’s data source. The idea is you instantiate the server set the data source and then start the server. During
I have a server class which is abstracted to receive it’s final configuration from it’s data source. The idea is you instantiate the server set the data source and then start the server. During
|
By
Sandor Szatmari
·
#1363
·
|
|
Re: Trouble with NSTableViews in macOS 11.x
I had set the style to "full-width" in IB, but that had no effect. Let me give "plain" a shot.
Thanks for the suggestions,
Sak
I had set the style to "full-width" in IB, but that had no effect. Let me give "plain" a shot.
Thanks for the suggestions,
Sak
|
By
Sak Wathanasin
·
#1362
·
|
|
Re: Trouble with NSTableViews in macOS 11.x
I ran into this when updating all of my apps for Big Sur. You'd think the "Full Width" style would make the table, well, full width, but it doesn't. I think the solution was to set the tableview style
I ran into this when updating all of my apps for Big Sur. You'd think the "Full Width" style would make the table, well, full width, but it doesn't. I think the solution was to set the tableview style
|
By
Jon Gotow
·
#1361
·
|
|
Re: Trouble with NSTableViews in macOS 11.x
Try adding this to your code at an appropriate point:
if (@available(macOS 11.0, *)) {
myTableView.style = NSTableViewStyleFullWidth;
}
--
Shane Stanley
Try adding this to your code at an appropriate point:
if (@available(macOS 11.0, *)) {
myTableView.style = NSTableViewStyleFullWidth;
}
--
Shane Stanley
|
By
Shane Stanley
·
#1360
·
|
|
Trouble with NSTableViews in macOS 11.x
The tableviews in one of our apps is behaving strangely when running on macOS 11.x. I have managed to reproduce thsi with a simple test app. Essentially, the issue occurs if if I build using the 11.x
The tableviews in one of our apps is behaving strangely when running on macOS 11.x. I have managed to reproduce thsi with a simple test app. Essentially, the issue occurs if if I build using the 11.x
|
By
Sak Wathanasin
·
#1359
·
|
|
Re: Exception not being caught in try statement
Try surrounding the call with beginEditing and endEditing on the text storage. If it still happens, submit a feedback to Apple with the full crash log.
--
Gary L. Wade
http://www.garywade.com/
Try surrounding the call with beginEditing and endEditing on the text storage. If it still happens, submit a feedback to Apple with the full crash log.
--
Gary L. Wade
http://www.garywade.com/
|
By
Gary L. Wade
·
#1358
·
|
|
Re: Exception not being caught in try statement
What's the architecture of the machine on which exceptions aren't being caught? Is the try block working on Intel and not on M1?
The crash is happening as the RTF reader is setting up the tab stops
What's the architecture of the machine on which exceptions aren't being caught? Is the try block working on Intel and not on M1?
The crash is happening as the RTF reader is setting up the tab stops
|
By
Jon Gotow
·
#1357
·
|
|
Exception not being caught in try statement
Hi folks,
Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it
Hi folks,
Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it
|
By
Mark Allan
·
#1356
·
|